|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Comparer<T>
Something that is able to compare two things of a type T.
Method Summary | |
---|---|
Comparison<T> |
compare(T x,
T y)
Compare two things. |
Class<?> |
getType()
The type of the things. |
Method Detail |
---|
Comparison<T> compare(T x, T y)
x
- One thing.y
- The other thing.
Class<?> getType()
Note that we would have liked the return type
to be Class<T>
but we could not then have had a
Comparer<Iterable<MatchableGroup>>
because it's not possible to
return a type of Class<Iterable<MatchableGroup>>
in Java.
If there is a solution to this then please let us know.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |