- Enclosing class:
- Util
public static interface Util.Comparator<A,B>
Compare two object. Normally both types are the same, but sometimes its
convenient to avoid creating a template object when using the comparator
for lookup. In the latter case B
would be the type of the key used
in a Comparator<A,A>
.