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