org.gcube.indexmanagement.featureindexlibrary.commons
Class SortAscRankedResultComparator
java.lang.Object
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
SortAscRankedResultComparator
public SortAscRankedResultComparator()
compare
public int compare(Object o1,
Object o2)
- compares the two instances
- Specified by:
compare in interface Comparator
- Parameters:
o1 - The left operanto2 - 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.