Compartir a través de


LongSummaryStatistics Constructors

Definition

Overloads

LongSummaryStatistics()

Constructs an empty instance with zero count, zero sum, Long.MAX_VALUE min, Long.MIN_VALUE max and zero average.

LongSummaryStatistics(IntPtr, JniHandleOwnership)
LongSummaryStatistics(Int64, Int64, Int64, Int64)

Constructs a non-empty instance with the specified count, min, max, and sum.

LongSummaryStatistics()

Constructs an empty instance with zero count, zero sum, Long.MAX_VALUE min, Long.MIN_VALUE max and zero average.

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=24)]
public LongSummaryStatistics ();
Attributes

Remarks

Constructs an empty instance with zero count, zero sum, Long.MAX_VALUE min, Long.MIN_VALUE max and zero average.

Java documentation for java.util.LongSummaryStatistics.LongSummaryStatistics().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

LongSummaryStatistics(IntPtr, JniHandleOwnership)

protected LongSummaryStatistics (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.LongSummaryStatistics : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.LongSummaryStatistics

Parameters

javaReference
IntPtr

nativeint

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

LongSummaryStatistics(Int64, Int64, Int64, Int64)

Constructs a non-empty instance with the specified count, min, max, and sum.

[Android.Runtime.Register(".ctor", "(JJJJ)V", "", ApiSince=33)]
public LongSummaryStatistics (long count, long min, long max, long sum);
[<Android.Runtime.Register(".ctor", "(JJJJ)V", "", ApiSince=33)>]
new Java.Util.LongSummaryStatistics : int64 * int64 * int64 * int64 -> Java.Util.LongSummaryStatistics

Parameters

count
Int64

the count of values

min
Int64

the minimum value

max
Int64

the maximum value

sum
Int64

the sum of all values

Attributes

Remarks

Constructs a non-empty instance with the specified count, min, max, and sum.

If count is zero then the remaining arguments are ignored and an empty instance is constructed.

If the arguments are inconsistent then an IllegalArgumentException is thrown. The necessary consistent argument conditions are: <ul> <li>count >= 0</li> <li>min <= max</li> </ul>

Added in 10.

Java documentation for java.util.LongSummaryStatistics.LongSummaryStatistics(long, long, long, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to