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