# Uses of Interface
org.apache.commons.collections4.Equator

Packages that use Equator
Package
Description
org.apache.commons.collections4
Interfaces and utilities shared across all packages.
org.apache.commons.collections4.functors
Implements the `Closure`, `Predicate`, `Transformer` and `Factory` interfaces.
org.apache.commons.collections4.sequence
Compares two sequences of objects.

- ## Uses of Equator in org.apache.commons.collections4

  Methods in org.apache.commons.collections4 with parameters of type Equator
  Modifier and Type
  Method
  Description
  `static <E> boolean`
  IterableUtils.`contains(Iterable<? extends E> iterable, E object, Equator<? super E> equator)`
  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)`
  Returns `true` iff the given `Collection`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 in `remove` from `collection`.
  `static <E> Collection<E>`
  CollectionUtils.`retainAll(Iterable<E> collection, Iterable<? extends E> retain, Equator<? super E> equator)`
  Returns a collection containing all the elements in `collection` that are also in `retain`.

- ## Uses of Equator in org.apache.commons.collections4.functors

  Classes in org.apache.commons.collections4.functors that implement Equator
  Modifier and Type
  Class
  Description
  `class`
  `DefaultEquator<T>`
  Default `Equator` implementation.
  Methods in org.apache.commons.collections4.functors with parameters of type Equator
  Modifier and Type
  Method
  Description
  `static <T> Predicate<T>`
  EqualPredicate.`equalPredicate(T object, Equator<T> equator)`
  Creates the identity predicate.
  Constructors in org.apache.commons.collections4.functors with parameters of type Equator
  Modifier
  Constructor
  Description
  ``
  `EqualPredicate(T test, Equator<T> equator)`
  Constructor that performs no validation.

- ## Uses of Equator in org.apache.commons.collections4.sequence

  Constructors in org.apache.commons.collections4.sequence with parameters of type Equator
  Modifier
  Constructor
  Description
  ``
  `SequencesComparator(List<T> sequence1, List<T> sequence2, Equator<? super T> equator)`
  Simple constructor.