Interface ValueRange<T>

    • Method Detail

      • contains

        boolean contains​(T value)
        Parameters:
        value - sometimes null
        Returns:
        true if the ValueRange contains that value
      • createRandomIterator

        Iterator<T> createRandomIterator​(Random workingRandom)
        Select in random order, but without shuffling the elements. Each element might be selected multiple times. Scales well because it does not require caching.
        Parameters:
        workingRandom - never null, the Random to use when any random number is needed, so EnvironmentMode.REPRODUCIBLE works correctly. RandomUtils can be useful too.
        Returns:
        never null