Package org.apache.commons.rng
Class UniformRandomProviderSupport.ProviderSpliterator
java.lang.Object
org.apache.commons.rng.UniformRandomProviderSupport.ProviderSpliterator
- Direct Known Subclasses:
UniformRandomProviderSupport.ProviderDoublesSpliterator
,UniformRandomProviderSupport.ProviderIntsSpliterator
,UniformRandomProviderSupport.ProviderLongsSpliterator
,UniformRandomProviderSupport.ProviderSplitsSpliterator
- Enclosing class:
UniformRandomProviderSupport
Base class for spliterators for streams of values. Contains the range current position and
end position. Splitting is expected to divide the range in half and create instances
that span the two ranges.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
position
protected long positionThe current position in the range. -
end
protected final long endThe upper limit of the range.
-
-
Constructor Details
-
ProviderSpliterator
ProviderSpliterator(long start, long end) - Parameters:
start
- Start position of the stream (inclusive).end
- Upper limit of the stream (exclusive).
-
-
Method Details
-
estimateSize
public long estimateSize() -
characteristics
public int characteristics()
-