org.openjena.atlas.lib
Class ReverseComparator<T>

java.lang.Object
  extended by org.openjena.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


Constructor Summary
ReverseComparator(Comparator<T> comparator)
           
 
Method Summary
 int compare(T o1, T o2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ReverseComparator

public ReverseComparator(Comparator<T> comparator)
Method Detail

compare

public int compare(T o1,
                   T o2)
Specified by:
compare in interface Comparator<T>


Licenced under the Apache License, Version 2.0