com.elasticpath.domain.misc.impl
Class TopSellerComparatorImpl
java.lang.Object
com.elasticpath.domain.misc.impl.TopSellerComparatorImpl
- All Implemented Interfaces:
- java.io.Serializable, java.util.Comparator
public class TopSellerComparatorImpl
- extends java.lang.Object
- implements java.util.Comparator, java.io.Serializable
This is a default implementation of TopSellerComparator
.
- See Also:
- Serialized Form
Method Summary |
int |
compare(java.lang.Object object1,
java.lang.Object object2)
Compares its two arguments for order. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
serialVersionUID
public static final long serialVersionUID
- Serial version id.
- See Also:
- Constant Field Values
TopSellerComparatorImpl
public TopSellerComparatorImpl()
compare
public int compare(java.lang.Object object1,
java.lang.Object object2)
- Compares its two arguments for order. Returns a negative integer, zero, or a positive integer if the first argument is less than, equal to, or
greater than the second.
- Specified by:
compare
in interface java.util.Comparator
- Parameters:
object1
- the first object to be compared.object2
- the second object to be compared.
- Returns:
- a negative integer, zero, or a positive integer if the first argument is less than, equal to, or greater than the second.
- Throws:
java.lang.ClassCastException
- if the arguments' types prevent them from being compared by this Comparator.