- java.lang.Object
-
- com.appslandia.common.utils.ValueUtils
-
-
Constructor Summary
Constructors Constructor Description ValueUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doubleinRange(Double checkValue, double min, double max)static intinRange(Integer checkValue, int min, int max)static longinRange(Long checkValue, long min, long max)static booleanisByteRange(long value)static booleanisFloatRange(double value)static booleanisIntRange(long value)static booleanisShortRange(long value)static <T> TvalidOrNull(T checkValue, T[] validValues)static intvalueOrAlt(int checkValue, int altValue)static longvalueOrAlt(long checkValue, long altValue)static <T> TvalueOrAlt(T checkValue, T altValue)static intvalueOrMax(Integer checkValue, int max)static longvalueOrMax(Long checkValue, long max)static intvalueOrMin(Integer checkValue, int min)static longvalueOrMin(Long checkValue, long min)
-
-
-
Method Detail
-
valueOrMin
public static int valueOrMin(Integer checkValue, int min)
-
valueOrMin
public static long valueOrMin(Long checkValue, long min)
-
valueOrMax
public static int valueOrMax(Integer checkValue, int max)
-
valueOrMax
public static long valueOrMax(Long checkValue, long max)
-
inRange
public static int inRange(Integer checkValue, int min, int max)
-
inRange
public static long inRange(Long checkValue, long min, long max)
-
inRange
public static double inRange(Double checkValue, double min, double max)
-
validOrNull
public static <T> T validOrNull(T checkValue, T[] validValues)
-
valueOrAlt
public static <T> T valueOrAlt(T checkValue, T altValue)
-
valueOrAlt
public static int valueOrAlt(int checkValue, int altValue)
-
valueOrAlt
public static long valueOrAlt(long checkValue, long altValue)
-
isFloatRange
public static boolean isFloatRange(double value)
-
isIntRange
public static boolean isIntRange(long value)
-
isShortRange
public static boolean isShortRange(long value)
-
isByteRange
public static boolean isByteRange(long value)
-
-