public class MathExt
extends java.lang.Object
| Constructor and Description |
|---|
MathExt() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isWithin(int value,
int lowerBound,
int upperBound)
Returns whether the value is between the lower and upper bound, inclusive.
|
static int |
min(int... ary)
Returns the minimum value in the array, which can be empty or null.
|
public static int min(int... ary)
ary - the array of integerspublic static boolean isWithin(int value,
int lowerBound,
int upperBound)
value - the value to comparelowerBound - the lower boundary, inclusiveupperBound - the upper boundary, inclusive