public final class EqualsUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
equalsAll(Object source,
Object... targets)
Whether a source object equals ALL of the target objects
|
static boolean |
equalsAllIgnoreCase(String source,
String... targets)
Whether a source string equals ALL of the target string.
|
static boolean |
equalsAny(Object source,
Object... targets)
Whether a source object equals ANY of the target objects.
|
static boolean |
equalsAnyIgnoreCase(String source,
String... targets)
Whether a source string equals ANY of the target string.
|
static boolean |
equalsMap(Map<?,?> map1,
Map<?,?> map2)
Compares that two maps are equals, regardless of entry orders.
|
static boolean |
equalsNone(Object source,
Object... targets)
Whether a source object equals NONE of the target objects
|
static boolean |
equalsNoneIgnoreCase(String source,
String... targets)
Whether a source string equals NONE of the target string.
|
public static boolean equalsAny(Object source, Object... targets)
source
- object being tested for equality with targetstargets
- one or more objects to be tested with source for equalitytrue
if any of the target objects are equalpublic static boolean equalsAnyIgnoreCase(String source, String... targets)
source
- string being tested for equality with target stringstargets
- one or more strings to be tested with source string
for equalitytrue
if any of the target strings are equalpublic static boolean equalsAll(Object source, Object... targets)
source
- object being tested for equality with targetstargets
- one or more objects to be tested with source for equalitytrue
if all of the target objects are equalpublic static boolean equalsAllIgnoreCase(String source, String... targets)
source
- string being tested for equality with target stringstargets
- one or more strings to be tested with source string
for equalitytrue
if all of the target strings are equalpublic static boolean equalsNone(Object source, Object... targets)
source
- object being tested for equality with targetstargets
- one or more objects to be tested with source for equalitytrue
if none of the target objects are equalpublic static boolean equalsNoneIgnoreCase(String source, String... targets)
source
- string being tested for equality with target stringstargets
- one or more strings to be tested with source string
for equalitytrue
if none of the target strings are equalpublic static boolean equalsMap(Map<?,?> map1, Map<?,?> map2)
equals
.map1
- first mapmap2
- second maptrue
if the two maps are equalCopyright © 2008–2021 Norconex Inc.. All rights reserved.