public class CompareUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equalsOne(Object _obj,
Object... _arrObj)
Returns true if the specified object equals at least one of the specified other objects.
|
static <T> T |
ifFalse(boolean _b,
T _t) |
static <T> T |
ifTrue(boolean _b,
T _t)
Returns the second parameter if the condition is true
or null if the condition is false.
|
static String |
isAnyFileMissing(File... _files)
Checks if any of the passed in files are non-existing.
|
static boolean |
isAnyNull(Object... _objects)
Checks if any of the passed in objects is null.
|
static boolean |
mapContainsKeys(Map<?,?> _map,
Object... _keys)
Checks whether a map contains all of the specified keys.
|
static boolean |
startsWithAny(String _str,
String... _startStrings)
Checks if given String starts with any of the other given parameters.
|
static void |
throwIfAnyNull(String _errMsg,
Object... _objects) |
public static boolean isAnyNull(Object... _objects)
_objects - array of objects, may be nullpublic static String isAnyFileMissing(File... _files)
_files - array of filespublic static <T> T ifTrue(boolean _b,
T _t)
CharSequence._b - condition_t - objectpublic static <T> T ifFalse(boolean _b,
T _t)
public static boolean equalsOne(Object _obj, Object... _arrObj)
_obj - object_arrObj - array of objects to compare topublic static boolean mapContainsKeys(Map<?,?> _map, Object... _keys)
_map - map_keys - one or more keysCopyright © 2018. All rights reserved.