public class UnorderedCollectionComparator extends Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
UnorderedCollectionComparator.CrossTypeComparator<A,B> |
A simple interface that attempts to compare objects of two different types
|
Constructor | Description |
---|---|
UnorderedCollectionComparator() |
Modifier and Type | Method | Description |
---|---|---|
static <A,B> boolean |
equalUnorderedCollections(Collection<A> colA,
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(Collection<T> colA,
Collection<T> colB) |
Compares two unordered lists of the same type.
|
public static <T> boolean equalUnorderedCollections(Collection<T> colA, Collection<T> colB)
public static <A,B> boolean equalUnorderedCollections(Collection<A> colA, Collection<B> colB, UnorderedCollectionComparator.CrossTypeComparator<A,B> comparator)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.