public class UnorderedCollectionComparator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
UnorderedCollectionComparator.CrossTypeComparator<A,B>
A simple interface that attempts to compare objects of two different types
|
Constructor and Description |
---|
UnorderedCollectionComparator() |
Modifier and Type | Method and Description |
---|---|
static <A,B> boolean |
equalUnorderedCollections(java.util.Collection<A> colA,
java.util.Collection<B> colB,
UnorderedCollectionComparator.CrossTypeComparator<A,B> comparator)
Compares two unordered lists of different types, using the specified
cross-type comparator.
|
static <T> boolean |
equalUnorderedCollections(java.util.Collection<T> colA,
java.util.Collection<T> colB)
Compares two unordered lists of the same type.
|
public static <T> boolean equalUnorderedCollections(java.util.Collection<T> colA, java.util.Collection<T> colB)
public static <A,B> boolean equalUnorderedCollections(java.util.Collection<A> colA, java.util.Collection<B> colB, UnorderedCollectionComparator.CrossTypeComparator<A,B> comparator)