public class SetComparisonPerformer<T>
extends java.lang.Object
Compares any kinds of collections as sets, using specified delegate to check if both collections contains all the same elements regarding their order.
If collections are of the same size, and failed result is produced - it will always contain only one sub-result with actual value being null. This indicates that expected collection contains an element that is not contained in the actual one. More specific result is impossible with this kind of comparison.
| Constructor and Description |
|---|
SetComparisonPerformer(ComparisonPerformer<? super T> elementPerformer) |
| Modifier and Type | Method and Description |
|---|---|
ComparisonResult |
apply(java.util.Collection<? extends T> actual,
java.util.Collection<? extends T> expected) |
boolean |
equals(java.lang.Object object) |
ComparisonPerformer<? super T> |
getElementPerformer() |
int |
hashCode() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetName, testpublic SetComparisonPerformer(ComparisonPerformer<? super T> elementPerformer)
public ComparisonResult apply(java.util.Collection<? extends T> actual, java.util.Collection<? extends T> expected)
public ComparisonPerformer<? super T> getElementPerformer()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Object