Package com.networknt.oas.validator
Class NumericUtils
- java.lang.Object
-
- com.networknt.oas.validator.NumericUtils
-
public class NumericUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description NumericUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Number>
intcompare(T x, T y)static <T extends Number>
booleaneq(T x, T y)static <T extends Number>
booleange(T x, T y)static <T extends Number>
booleangt(T x, T y)static booleanisIntegral(Object obj)static <T extends Number>
booleanisNegative(T x)static <T extends Number>
booleanisNonNegative(T x)static <T extends Number>
booleanisNonPostive(T x)static <T extends Number>
booleanisnonZero(T x)static booleanisNumeric(Object obj)static <T extends Number>
booleanisPositive(T x)static <T extends Number>
booleanisZero(T x)static <T extends Number>
booleanle(T x, T y)static <T extends Number>
booleanlt(T x, T y)static <T extends Number>
booleanne(T x, T y)static <T extends Number>
Tzero(T value)
-
-
-
Method Detail
-
isNumeric
public static boolean isNumeric(Object obj)
-
isIntegral
public static boolean isIntegral(Object obj)
-
zero
public static <T extends Number> T zero(T value)
-
gt
public static <T extends Number> boolean gt(T x, T y)
-
ge
public static <T extends Number> boolean ge(T x, T y)
-
lt
public static <T extends Number> boolean lt(T x, T y)
-
le
public static <T extends Number> boolean le(T x, T y)
-
eq
public static <T extends Number> boolean eq(T x, T y)
-
ne
public static <T extends Number> boolean ne(T x, T y)
-
isPositive
public static <T extends Number> boolean isPositive(T x)
-
isZero
public static <T extends Number> boolean isZero(T x)
-
isNegative
public static <T extends Number> boolean isNegative(T x)
-
isNonNegative
public static <T extends Number> boolean isNonNegative(T x)
-
isnonZero
public static <T extends Number> boolean isnonZero(T x)
-
isNonPostive
public static <T extends Number> boolean isNonPostive(T x)
-
compare
public static <T extends Number> int compare(T x, T y)
-
-