Class UniformRandomProviderSupport.AbstractProviderSpliterator<T>

java.lang.Object
org.apache.commons.rng.UniformRandomProviderSupport.AbstractProviderSpliterator<T>
Type Parameters:
T - the type of elements returned by this Spliterator.
All Implemented Interfaces:
Spliterator<T>
Direct Known Subclasses:
UniformRandomProviderSupport.ProviderDoublesSpliterator, UniformRandomProviderSupport.ProviderIntsSpliterator, UniformRandomProviderSupport.ProviderLongsSpliterator, UniformRandomProviderSupport.ProviderSplitsSpliterator
Enclosing class:
UniformRandomProviderSupport

private abstract static class UniformRandomProviderSupport.AbstractProviderSpliterator<T> extends Object implements Spliterator<T>
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.
Since:
1.5
  • Field Details

    • position

      protected long position
      The current position in the range.
    • end

      protected final long end
      The upper limit of the range.
  • Constructor Details

    • AbstractProviderSpliterator

      AbstractProviderSpliterator(long position, long end)
      Constructs a new instance.
      Parameters:
      position - Start position of the stream (inclusive).
      end - Upper limit of the stream (exclusive).
  • Method Details