org.gcube.indexmanagement.featureindexlibrary.commons
Class SortAscRankedResultComparator

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.commons.SortAscRankedResultComparator
All Implemented Interfaces:
Comparator

public class SortAscRankedResultComparator
extends Object
implements Comparator

Comparator for sorting in ascending order RankedResultElement

Author:
UoA

Constructor Summary
SortAscRankedResultComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          compares the two instances
 boolean equals(Object o)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortAscRankedResultComparator

public SortAscRankedResultComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
compares the two instances

Specified by:
compare in interface Comparator
Parameters:
o1 - The left operant
o2 - The right operant
Returns:
The result of the comparison

equals

public boolean equals(Object o)
Specified by:
equals in interface Comparator
Overrides:
equals in class Object
Parameters:
o - The object to check for comparison
Returns:
the result of the equality check
See Also:
Object.equals(java.lang.Object)


Copyright © 2013. All Rights Reserved.