org.gcube.indexmanagement.featureindexlibrary.commons
Class SortAscHeapElementComparator

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

public class SortAscHeapElementComparator
extends Object
implements Comparator

Comparator for sorting in ascending order HeapElement

Author:
UoA

Constructor Summary
SortAscHeapElementComparator()
           
 
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

SortAscHeapElementComparator

public SortAscHeapElementComparator()
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 © 2012. All Rights Reserved.