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 |
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 equalCopyright © 2008–2016 Norconex Inc.. All rights reserved.