Package util

Interface Arrays.CompareTo2

Enclosing class:
Arrays

public static interface Arrays.CompareTo2
Interface for extended compareTo function.
Since:
2002.04.02
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compareTo(Object obj, Object data)
    Compare two objects, possibly using additional data.
  • Method Details

    • compareTo

      int compareTo(Object obj, Object data)
      Compare two objects, possibly using additional data.
      Parameters:
      obj - the object to compare to
      data - the additional data that may be used
      Returns:
      -1, 0, or +1 as this object is less than, equal to, or greater than the given object (argument)
      Since:
      2002.04.02 (Christian Borgelt)