Package org.rspeer.commons.math
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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
each(IntConsumer consumer)
int[]
fill()
<T> List<T>
map(IntFunction<T> mapper)
int
maximum()
int
minimum()
static Range
of(int min, int max)
static Range
ordered(int a, int b)
int
random()
boolean
within(int value)
-
-
-
Method Detail
-
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)
-
-