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 Details

  • Method Details

    • compare

      public int compare​(VarCell o1, VarCell o2)
      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 interface Comparator<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 arguments
      ClassCastException - if the arguments' types prevent them from being compared by this comparator.