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 | Field and Description |
---|---|
private Equator<O> |
CollectionUtils.EquatorWrapper.equator |
Modifier and Type | Method and Description |
---|---|
static boolean |
CollectionUtils.isEqualCollection(java.util.Collection<?> a,
java.util.Collection<?> b,
Equator<?> equator)
Returns true iff the given
Collection s contain
exactly the same elements with exactly the same cardinalities. |
static <E> java.util.List<E> |
ListUtils.longestCommonSubsequence(java.util.List<E> a,
java.util.List<E> b,
Equator<? super E> equator)
Returns the longest common subsequence (LCS) of two sequences (lists).
|
Constructor and Description |
---|
EquatorWrapper(Equator<O> equator,
O object) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultEquator<T>
Default
Equator implementation. |
Modifier and Type | Field and Description |
---|---|
private Equator<T> |
EqualPredicate.equator
The equator to use for comparison
|
Modifier and Type | Method and Description |
---|---|
static <T> Predicate<T> |
EqualPredicate.equalPredicate(T object,
Equator<T> equator)
Factory to create the identity predicate.
|
Constructor and Description |
---|
EqualPredicate(T object,
Equator<T> equator)
Constructor that performs no validation.
|
Modifier and Type | Field and Description |
---|---|
private Equator<? super T> |
SequencesComparator.equator
The equator used for testing object equality.
|
Constructor and Description |
---|
SequencesComparator(java.util.List<T> sequence1,
java.util.List<T> sequence2,
Equator<? super T> equator)
Simple constructor.
|