| Package | Description |
|---|---|
| org.apache.commons.collections4 |
This package contains the interfaces and utilities shared across all the subpackages of this component.
|
| org.apache.commons.collections4.functors |
This package contains implementations of the
Closure,
Predicate,
Transformer and
Factory interfaces.
|
| org.apache.commons.collections4.sequence |
This package provides classes to compare two sequences of objects.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> boolean |
IterableUtils.contains(Iterable
Checks if the object is contained in the given iterable.
|
static <E> boolean |
CollectionUtils.isEqualCollection(Collection
Returns
true iff the given
Collections contain exactly the same elements with exactly the same cardinalities.
|
static <E> List |
ListUtils.longestCommonSubsequence(List
Returns the longest common subsequence (LCS) of two sequences (lists).
|
static <E> Collection |
CollectionUtils.removeAll(Iterable
Removes all elements in
remove from
collection.
|
static <E> Collection |
CollectionUtils.retainAll(Iterable
Returns a collection containing all the elements in
collection that are also in
retain.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultEquator<T>
Default
Equator implementation.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate |
EqualPredicate.equalPredicate(T object, Equator
Factory to create the identity predicate.
|
| Constructor and Description | |
|---|---|
EqualPredicate(T object, Equator
Constructor that performs no validation.
|
| Constructor and Description | |
|---|---|
SequencesComparator(List
Simple constructor.
|