Example usage for Java org.apache.commons.collections4 IterableUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | contains(final Iterable Checks if the object is contained in the given iterable. |
long | countMatches(final Iterable Counts the number of elements in the input iterable that match the predicate. |
Iterable | emptyIterable() Gets an empty iterable. |
Iterable | filteredIterable(final Iterable Returns a view of the given iterable that only contains elements matching the provided predicate. |
E | find(final Iterable Finds the first element in the given iterable which matches the given predicate. |
void | forEach(final Iterable Applies the closure to each element of the provided iterable. |
E | forEachButLast(final Iterable Executes the given closure on each but the last element in the iterable. |
T | get(final Iterable Returns the index -th value in the iterable 's Iterator , throwing IndexOutOfBoundsException if there is no such element. |
boolean | isEmpty(final Iterable> iterable) Answers true if the provided iterable is empty. |
boolean | matchesAll(final Iterable Answers true if a predicate is true for every element of an iterable. |
boolean | matchesAny(final Iterable Answers true if a predicate is true for any element of the iterable. |
int | size(final Iterable> iterable) Returns the number of elements contained in the given iterator. |
List | toList(final Iterable Gets a new list with the contents of the provided iterable. |
String | toString(final Iterable Returns a string representation of the elements of the specified iterable. |