Java org.apache.commons.collections15 CollectionUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.collections15 CollectionUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.collections15 CollectionUtils.

The text is from its open source code.

Subclass

org.apache.commons.collections15.CollectionUtils has subclasses.
Click this link to see all its subclasses.

Method

voidaddAll(Collection collection, Iterator iterator)
Adds all elements in the iteration to the given collection.
voidaddAll(Collection collection, Enumeration enumeration)
Adds all elements in the enumeration to the given collection.
voidaddAll(Collection collection, T... elements)
Adds all elements in the array to the given collection.
Collectioncollect(Collection inputCollection, Transformer transformer)
Returns a new Collection consisting of the elements of inputCollection transformed by the given transformer.
Collectioncollect(Iterator inputIterator, Transformer transformer)
Transforms all elements from the inputIterator with the given transformer and adds them to the outputCollection.
booleancontainsAny(final Collection coll1, final Collection coll2)
Returns true iff at least one element is in both collections15.
booleanexists(Iterable iterable, Predicate predicate)
Answers true if a predicate is true for at least one element of a iterable.
voidfilter(Iterable iterable, Predicate predicate)
Filter the iterable by applying a Predicate to each element.
Efind(Iterable iterable, Predicate predicate)
Finds the first element in the given iterable which matches the given predicate.
voidforAllDo(Iterable iterable, Closure closure)
Executes the given closure on each element in the iterable.
Objectget(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.
Collectionintersection(final Collection a, final Collection b)
Returns a Collection containing the intersection of the given Collection s.
booleanisEqualCollection(final Collection a, final Collection b)
Returns true iff the given Collection s contain exactly the same elements with exactly the same cardinalities.
booleanisSubCollection(final Iterable a, final Iterable 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.
Collectionselect(Collection inputCollection, Predicate predicate)
Selects all elements from input collection which match the given predicate into an output collection.
Collectionsubtract(final Collection a, final Iterable b)
Returns a new Collection containing a - b.
voidtransform(Collection collection, Transformer transformer)
Transform the collection by applying a Transformer to each element.
Collectionunion(final Collection a, final Collection b)
Returns a Collection containing the union of the given Collection s.
CollectionunmodifiableCollection(Collection collection)
Returns an unmodifiable collection backed by the given collection.