Class ComparePrimitiveFacade
- java.lang.Object
-
- org.fugerit.java.core.lang.compare.ComparePrimitiveFacade
-
public class ComparePrimitiveFacade extends Object
This class provides utilities for comparing primitive types.
- Author:
- Fugerit
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
compareInt(Integer target, Integer... value)
Check if a target value is among one or more values.
-
-
-
Method Detail
-
compareInt
public static boolean compareInt(Integer target, Integer... value)
Check if a target value is among one or more values.
NOTE: if target is
null
returns alwaysfalse
.- Parameters:
target
- the target valuevalue
- List of values to check- Returns:
true
if target is among the values,false
otherwise.
-
-