Uses of Interface
org.apache.commons.collections4.Equator
Package
Description
Interfaces and utilities shared across all packages.
Compares two sequences of objects.
-
Uses of Equator in org.apache.commons.collections4
Modifier and TypeMethodDescriptionstatic <E> boolean
Checks if the object is contained in the given iterable.static <E> int
CollectionUtils.hashCode
(Collection<? extends E> collection, Equator<? super E> equator) Returns the hash code of the input collection using the hash method of an equator.static <E> boolean
CollectionUtils.isEqualCollection
(Collection<? extends E> a, Collection<? extends E> b, Equator<? super E> equator) Returnstrue
iff the givenCollection
s contain exactly the same elements with exactly the same cardinalities.static <E> List<E>
ListUtils.longestCommonSubsequence
(List<E> listA, List<E> listB, Equator<? super E> equator) Returns the longest common subsequence (LCS) of two sequences (lists).static <E> Collection<E>
CollectionUtils.removeAll
(Iterable<E> collection, Iterable<? extends E> remove, Equator<? super E> equator) Removes all elements inremove
fromcollection
.static <E> Collection<E>
CollectionUtils.retainAll
(Iterable<E> collection, Iterable<? extends E> retain, Equator<? super E> equator) Returns a collection containing all the elements incollection
that are also inretain
. -
Uses of Equator in org.apache.commons.collections4.functors
Modifier and TypeMethodDescriptionstatic <T> Predicate<T>
EqualPredicate.equalPredicate
(T object, Equator<T> equator) Factory to create the identity predicate.ModifierConstructorDescriptionEqualPredicate
(T object, Equator<T> equator) Constructor that performs no validation. -
Uses of Equator in org.apache.commons.collections4.sequence