Example usage for Java org.apache.commons.collections15 CollectionUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addAll(Collection Adds all elements in the iteration to the given collection. |
void | addAll(Collection Adds all elements in the enumeration to the given collection. |
void | addAll(Collection Adds all elements in the array to the given collection. |
Collection | collect(Collection inputCollection, Transformer super I, ? extends O> transformer) Returns a new Collection consisting of the elements of inputCollection transformed by the given transformer. |
Collection | collect(Iterator inputIterator, Transformer super I, ? extends O> transformer) Transforms all elements from the inputIterator with the given transformer and adds them to the outputCollection. |
boolean | containsAny(final Collection extends E> coll1, final Collection extends E> coll2) Returns true iff at least one element is in both collections15. |
boolean | exists(Iterable Answers true if a predicate is true for at least one element of a iterable. |
void | filter(Iterable Filter the iterable by applying a Predicate to each element. |
E | find(Iterable Finds the first element in the given iterable which matches the given predicate. |
void | forAllDo(Iterable Executes the given closure on each element in the iterable. |
Object | get(Object object, int index) Returns the index -th value in object , throwing IndexOutOfBoundsException if there is no such element or IllegalArgumentException if object is not an instance of one of the supported types. |
Collection | intersection(final Collection extends E> a, final Collection extends E> b) Returns a Collection containing the intersection of the given Collection s. |
boolean | isEqualCollection(final Collection extends E> a, final Collection extends E> b) Returns true iff the given Collection s contain exactly the same elements with exactly the same cardinalities. |
boolean | isSubCollection(final Iterable extends E> a, final Iterable extends E> b) Returns true iff a is a sub-collection of b, that is, iff the cardinality of e in a is less than or equal to the cardinality of e in b, for each element e in a. |
Collection | select(Collection Selects all elements from input collection which match the given predicate into an output collection. |
Collection | subtract(final Collection extends E> a, final Iterable extends E> b) Returns a new Collection containing a - b. |
void | transform(Collection Transform the collection by applying a Transformer to each element. |
Collection | union(final Collection extends E> a, final Collection extends E> b) Returns a Collection containing the union of the given Collection s. |
Collection | unmodifiableCollection(Collection Returns an unmodifiable collection backed by the given collection. |