Spliterators.AbstractSpliterator.EstimateSize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
To be added
[Android.Runtime.Register("estimateSize", "()J", "GetEstimateSizeHandler", ApiSince=24)]
public virtual long EstimateSize();
[<Android.Runtime.Register("estimateSize", "()J", "GetEstimateSizeHandler", ApiSince=24)>]
abstract member EstimateSize : unit -> int64
override this.EstimateSize : unit -> int64
Returns
the estimated size, or Long.MAX_VALUE if infinite, unknown, or too expensive to compute.
Implements
- Attributes
Remarks
Returns an estimate of the number of elements that would be encountered by a Spliterator.forEachRemaining(java.util.function.Consumer<? super T>) traversal, or returns Long.MAX_VALUE if infinite, unknown, or too expensive to compute. If this Spliterator is Spliterator.SIZED and has not yet been partially traversed or split, or this Spliterator is Spliterator.SUBSIZED and has not yet been partially traversed, this estimate must be an accurate count of elements that would be encountered by a complete traversal. Otherwise, this estimate may be arbitrarily inaccurate, but must decrease as specified across invocations of Spliterator.trySplit().
Java documentation for java.util.Spliterators.AbstractSpliterator.estimateSize().
Java reference for java.util.Spliterators.AbstractSpliterator.estimateSize.
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.