class GroupFilter.MyComparer extends java.lang.Object implements TestAllPermutations.JavaResultComparer
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(JavaResult first,
JavaResult second)
Return whether the two JavaResult instances are equal according
to the equality defined by this comparer.
|
int |
hashCode(JavaResult result)
Returns the hash code for the given JavaResult instance according
to this comparer.
|
boolean |
shouldGroup(JavaResult result)
Returns whether this result instance should be grouped.
|
boolean |
shouldRemove(JavaResult result)
Returns whether this result instance should be immediately removed.
|
public boolean equals(JavaResult first, JavaResult second)
TestAllPermutations.JavaResultComparerequals in interface TestAllPermutations.JavaResultComparerfirst - The first result.second - The second result.public int hashCode(JavaResult result)
TestAllPermutations.JavaResultComparerhashCode in interface TestAllPermutations.JavaResultComparerresult - The result.public boolean shouldRemove(JavaResult result)
TestAllPermutations.JavaResultComparershouldRemove in interface TestAllPermutations.JavaResultComparerresult - The result.public boolean shouldGroup(JavaResult result)
TestAllPermutations.JavaResultComparerTestAllPermutations.JavaResultComparer.shouldRemove(JavaResult), the candidate program
producing the result is not removed. Therefore, it may be further processed
for other input. The default implementation always returns true.shouldGroup in interface TestAllPermutations.JavaResultComparerresult - The result.