org.apache.jena.atlas.lib
Class ReverseComparator<T>
java.lang.Object
org.apache.jena.atlas.lib.ReverseComparator<T>
- All Implemented Interfaces:
- Comparator<T>
public class ReverseComparator<T>
- extends Object
- implements Comparator<T>
Comparator that compares the other way round to it's sub-comparator
ReverseComparator
public ReverseComparator(Comparator<T> comparator)
compare
public int compare(T o1,
T o2)
- Specified by:
compare in interface Comparator<T>
Licenced under the Apache License, Version 2.0