public class ComparePrimitiveFacade extends Object
This class provides utilities for comparing primitive types.
Constructor and Description |
---|
ComparePrimitiveFacade() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareInt(Integer target,
Integer... value)
Check if a target value is among one or more values.
|
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 always false
.
target
- the target valuevalue
- List of values to checktrue
if target is among the values, false
otherwise.Copyright © 2022 Fugerit. All rights reserved.