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

private static class UniformRandomProviderSupport.ProviderSpliterator extends Object
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 Details

    • position

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

      protected final long end
      The 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()