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.JavaResultComparer
equals
in interface TestAllPermutations.JavaResultComparer
first
- The first result.second
- The second result.public int hashCode(JavaResult result)
TestAllPermutations.JavaResultComparer
hashCode
in interface TestAllPermutations.JavaResultComparer
result
- The result.public boolean shouldRemove(JavaResult result)
TestAllPermutations.JavaResultComparer
shouldRemove
in interface TestAllPermutations.JavaResultComparer
result
- The result.public boolean shouldGroup(JavaResult result)
TestAllPermutations.JavaResultComparer
TestAllPermutations.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.JavaResultComparer
result
- The result.