Class IntegerRange
java.lang.Object
com.dlsc.gemsfx.util.IntegerRange
Represents an inclusive range of integers. This record defines a start and end point for the range, both inclusive.
-
Constructor Summary
ConstructorsConstructorDescriptionIntegerRange(int toInclusive) Constructs an IntegerRange with one endpoint specified by the given number and the other endpoint set to 0.IntegerRange(int fromInclusive, int toInclusive) -
Method Summary
-
Constructor Details
-
IntegerRange
public IntegerRange(int fromInclusive, int toInclusive) -
IntegerRange
public IntegerRange(int toInclusive) Constructs an IntegerRange with one endpoint specified by the given number and the other endpoint set to 0.
-
-
Method Details
-
getMax
public int getMax()Retrieves the maximum value in the range.- Returns:
- The larger of the two numbers defining the range.
-
getMin
public int getMin()Retrieves the minimum value in the range.- Returns:
- The smaller of the two numbers defining the range.
-