public final class Objects
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
containedBy(java.lang.Object element,
java.lang.Iterable _elements)
Predicate returning true if an element is contained in the function argument (Iterable)
|
static <T> boolean |
containedIn(T element,
T[] _elements)
Predicate returning true if an element is contained in the function argument (Array)
|
static boolean |
contains(java.lang.Object element,
java.lang.String _part)
Predicate returning true when the function argument's toString() contains some string
|
static boolean |
contains(java.lang.Object element,
java.lang.String _part,
StringComparison _comparison)
Predicate returning true when the function argument's toString() contains some string
|
static boolean |
endsWith(java.lang.Object element,
java.lang.String _suffix)
Predicate returning true when the function argument's toString() ends with a suffix
|
static boolean |
endsWith(java.lang.Object element,
java.lang.String _suffix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() ends with a suffix
|
static boolean |
equal(java.lang.Object element,
java.lang.Object _value)
Predicate returning true when the function argument is equal to a value
|
static <T extends java.lang.Comparable<T>> |
greaterThan(T element,
T _value)
Predicate returning true when the function argument is greater than a value
|
static <T extends java.lang.Comparable<T>> |
greaterThanOrEqual(T element,
T _value)
Predicate returning true when the function argument is greater than or equal to a value
|
static boolean |
instanceOf(java.lang.Object obj,
java.lang.Class<?> _class)
Predicate that returns true if the function argument is an instance of the class specified
|
static boolean |
isEqual(java.lang.Object element,
java.lang.String _other)
Predicate returning true when the function argument's toString() is equal to some string
|
static boolean |
isEqual(java.lang.Object element,
java.lang.String _other,
StringComparison _comparison)
Predicate returning true when the function argument's toString() is equal to some string
|
static boolean |
isExtending(java.lang.Object obj,
java.lang.Class<?> _class)
Predicate that returns true if the function argument is a subclass of the class specified
|
static boolean |
isImplementing(java.lang.Object obj,
java.lang.Class<?> _class)
Predicate that returns true if the function argument is an instance of the interface specified
|
static boolean |
isNotExtending(java.lang.Object obj,
java.lang.Class<?> _class)
Predicate that returns true if the function argument is not a subclass of the class specified
|
static boolean |
isNotImplementing(java.lang.Object obj,
java.lang.Class<?> _class)
Predicate that returns true if the function argument is not an instance of the interface specified
|
static boolean |
isNotNull(java.lang.Object element)
Predicate returning true when the function argument is not null
|
static boolean |
isNull(java.lang.Object element)
Predicate returning true when the function argument is null
|
static <T extends java.lang.Comparable<T>> |
lessThan(T element,
T _value)
Predicate returning true when the function argument is less than a value
|
static <T extends java.lang.Comparable<T>> |
lessThanOrEqual(T element,
T _value)
Predicate returning true when the function argument is less than or equal to a value
|
static boolean |
notContainedBy(java.lang.Object element,
java.lang.Iterable _elements)
Predicate returning true if an element is not contained in the function argument (Iterable)
|
static <T> boolean |
notContainedIn(T element,
T[] _elements)
Predicate returning true if an element is not contained in the function argument (Array)
|
static boolean |
notContains(java.lang.Object element,
java.lang.String _part)
Predicate returning true when the function argument's toString() does not contain some string
|
static boolean |
notContains(java.lang.Object element,
java.lang.String _part,
StringComparison _comparison)
Predicate returning true when the function argument's toString() does not contain some string
|
static boolean |
notEndsWith(java.lang.Object element,
java.lang.String _suffix)
Predicate returning true when the function argument's toString() does not end with a suffix
|
static boolean |
notEndsWith(java.lang.Object element,
java.lang.String _suffix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() does not end with a suffix
|
static boolean |
notEqual(java.lang.Object element,
java.lang.Object _value)
Predicate returning true when the function argument is not equal to a value
|
static boolean |
notInstanceOf(java.lang.Object obj,
java.lang.Class<?> _class)
Predicate that returns true if the function argument is not an instance of the class specified
|
static boolean |
notStartsWith(java.lang.Object element,
java.lang.String _prefix)
Predicate returning true when the function argument's toString() does not start with a prefix
|
static boolean |
notStartsWith(java.lang.Object element,
java.lang.String _prefix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() does not start with a prefix
|
static boolean |
print(java.lang.Object element)
Predicate returning true always, can be used to print out all elements in an all() Linq statement
|
static boolean |
println(java.lang.Object element)
Predicate returning true always, can be used to print out all elements in an all() Linq statement
|
static boolean |
startsWith(java.lang.Object element,
java.lang.String _prefix)
Predicate returning true when the function argument's toString() starts with a prefix
|
static boolean |
startsWith(java.lang.Object element,
java.lang.String _prefix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() starts with a prefix
|
public static boolean contains(java.lang.Object element, java.lang.String _part)
java.lang.NullPointerException
- When an argument is nullpublic static boolean contains(java.lang.Object element, java.lang.String _part, StringComparison _comparison)
java.lang.NullPointerException
- When an argument is nullpublic static <T> boolean containedIn(T element, T[] _elements)
public static boolean containedBy(java.lang.Object element, java.lang.Iterable _elements)
public static boolean endsWith(java.lang.Object element, java.lang.String _suffix)
java.lang.NullPointerException
- When an argument is nullpublic static boolean endsWith(java.lang.Object element, java.lang.String _suffix, StringComparison _comparison)
java.lang.NullPointerException
- When an argument is nullpublic static boolean equal(java.lang.Object element, java.lang.Object _value)
public static <T extends java.lang.Comparable<T>> boolean greaterThan(T element, T _value)
java.lang.NullPointerException
- When an argument is nullpublic static <T extends java.lang.Comparable<T>> boolean greaterThanOrEqual(T element, T _value)
java.lang.NullPointerException
- When an argument is nullpublic static boolean isEqual(java.lang.Object element, java.lang.String _other)
java.lang.NullPointerException
- When an argument is nullpublic static boolean isEqual(java.lang.Object element, java.lang.String _other, StringComparison _comparison)
java.lang.NullPointerException
- When an argument is nullpublic static boolean isExtending(java.lang.Object obj, java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is nulljava.lang.IllegalArgumentException
- When a non-class (e.g. interface) was providedpublic static boolean isImplementing(java.lang.Object obj, java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is nulljava.lang.IllegalArgumentException
- When a non-interface (e.g. class) was providedpublic static boolean isNotExtending(java.lang.Object obj, java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is nulljava.lang.IllegalArgumentException
- When a non-class (e.g. interface) was providedpublic static boolean isNotImplementing(java.lang.Object obj, java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is nulljava.lang.IllegalArgumentException
- When a non-interface (e.g. class) was providedpublic static boolean instanceOf(java.lang.Object obj, java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is nullpublic static boolean isNull(java.lang.Object element)
public static boolean isNotNull(java.lang.Object element)
public static boolean println(java.lang.Object element)
java.lang.NullPointerException
- When an argument is nullpublic static boolean print(java.lang.Object element)
java.lang.NullPointerException
- When an argument is nullpublic static <T extends java.lang.Comparable<T>> boolean lessThan(T element, T _value)
java.lang.NullPointerException
- When an argument is nullpublic static <T extends java.lang.Comparable<T>> boolean lessThanOrEqual(T element, T _value)
java.lang.NullPointerException
- When an argument is nullpublic static boolean notContains(java.lang.Object element, java.lang.String _part)
java.lang.NullPointerException
- When an argument is nullpublic static boolean notContains(java.lang.Object element, java.lang.String _part, StringComparison _comparison)
java.lang.NullPointerException
- When an argument is nullpublic static <T> boolean notContainedIn(T element, T[] _elements)
public static boolean notContainedBy(java.lang.Object element, java.lang.Iterable _elements)
public static boolean notEndsWith(java.lang.Object element, java.lang.String _suffix)
java.lang.NullPointerException
- When an argument is nullpublic static boolean notEndsWith(java.lang.Object element, java.lang.String _suffix, StringComparison _comparison)
java.lang.NullPointerException
- When an argument is nullpublic static boolean notEqual(java.lang.Object element, java.lang.Object _value)
public static boolean notInstanceOf(java.lang.Object obj, java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is nullpublic static boolean notStartsWith(java.lang.Object element, java.lang.String _prefix)
java.lang.NullPointerException
- When an argument is nullpublic static boolean notStartsWith(java.lang.Object element, java.lang.String _prefix, StringComparison _comparison)
java.lang.NullPointerException
- When an argument is nullpublic static boolean startsWith(java.lang.Object element, java.lang.String _prefix)
java.lang.NullPointerException
- When an argument is nullpublic static boolean startsWith(java.lang.Object element, java.lang.String _prefix, StringComparison _comparison)
java.lang.NullPointerException
- When an argument is null