public final class Arrays
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> Predicates.Predicate1<T> |
contains(T[] _values)
Predicate returning true when the function argument contains an item
|
static <T> Predicates.Predicate1<T[]> |
containsAll(T[] _values)
Predicate returning true when the function argument contains all items
|
static <T> Predicates.Predicate1<T[]> |
containsAny(T[] _values)
Predicate returning true when the function argument contains any of the given items
|
static <T> Predicates.Predicate1<T[]> |
deepEqual(T[] _values)
Predicate returning true when the function argument is deeply equal to another array
|
static <T> Predicates.Predicate1<T[]> |
equal(T[] _value)
Predicate returning true when the function argument is equal to another array
|
static <T> Predicates.Predicate1<T[]> |
isEmpty()
Predicate returning true when the function argument is empty
|
static <T> Predicates.Predicate1<T[]> |
isNotEmpty()
Predicate returning true when the function argument is not empty
|
static <T> Predicates.Predicate1<T[]> |
lengthEquals(int _len)
Predicate returning true when the length equals to specified value
|
static <T> Predicates.Predicate1<T[]> |
lengthGreaterThan(int _len)
Predicate returning true when the length is greater than a specified value
|
static <T> Predicates.Predicate1<T[]> |
lengthGreaterThanOrEqual(int _len)
Predicate returning true when the length is greater than or equal to a specified value
|
static <T> Predicates.Predicate1<T[]> |
lengthLessThan(int _len)
Predicate returning true when the length is less than a specified value
|
static <T> Predicates.Predicate1<T[]> |
lengthLessThanOrEqual(int _len)
Predicate returning true when the length is less than or equal to a specified value
|
static <T> Predicates.Predicate1<T[]> |
lengthNotEqual(int _len)
Predicate returning true when the length is not equal to a specified value
|
static <T> Predicates.Predicate1<T[]> |
notContains(T _item)
Predicate returning true when the function argument does not contain an item
|
static <T> Predicates.Predicate1<T[]> |
notContainsAll(T[] _items)
Predicate returning true when the function argument does not contain all items
|
static <T> Predicates.Predicate1<T[]> |
notContainsAny(T[] _items)
Predicate returning true when the function argument does not contain any of the given items
|
static <T> Predicates.Predicate1<T[]> |
notEqual(T[] _value)
Predicate returning true when the function argument is not equal to another array
|
public static <T> Predicates.Predicate1<T> contains(T[] _values)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> containsAll(T[] _values)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> containsAny(T[] _values)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> deepEqual(T[] _values)
public static <T> Predicates.Predicate1<T[]> equal(T[] _value)
public static <T> Predicates.Predicate1<T[]> isEmpty()
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> isNotEmpty()
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> lengthEquals(int _len)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> lengthGreaterThan(int _len)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> lengthGreaterThanOrEqual(int _len)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> lengthLessThan(int _len)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> lengthLessThanOrEqual(int _len)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> lengthNotEqual(int _len)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> notEqual(T[] _value)
public static <T> Predicates.Predicate1<T[]> notContains(T _item)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> notContainsAll(T[] _items)
java.lang.NullPointerException
- When an argument is nullpublic static <T> Predicates.Predicate1<T[]> notContainsAny(T[] _items)
java.lang.NullPointerException
- When an argument is null