Class Range

java.lang.Object
org.rspeer.commons.math.Range

public class Range extends Object
A numeric range, only the minimum and maximum values are provided.
  • Method Details

    • ordered

      public static Range ordered(int a, int b)
    • of

      public static Range of(int min, int max)
    • map

      public <T> List<T> map(IntFunction<T> mapper)
    • minimum

      public int minimum()
    • maximum

      public int maximum()
    • within

      public boolean within(int value)
    • random

      public int random()
    • fill

      public int[] fill()
    • each

      public void each(IntConsumer consumer)