Package com.walkfares.odsl.var.matrix
Class VarCellComparator
java.lang.Object
com.walkfares.odsl.var.matrix.VarCellComparator
- All Implemented Interfaces:
Comparator<VarCell>
public class VarCellComparator extends Object implements Comparator<VarCell>
-
Constructor Summary
Constructors Constructor Description VarCellComparator()
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
VarCellComparator
public VarCellComparator()
-
-
Method Details
-
compare
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.- Specified by:
compare
in interfaceComparator<VarCell>
- Parameters:
o1
- the first object to be compared.o2
- the second object to be compared.- Returns:
- a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
- Throws:
NullPointerException
- if an argument is null and this comparator does not permit null argumentsClassCastException
- if the arguments' types prevent them from being compared by this comparator.
-