Package edu.rit.util

Class Searching.Object<T>

java.lang.Object
edu.rit.util.Searching.Object<T>
Type Parameters:
T - Array element data type.
Enclosing class:
Searching

public abstract static class Searching.Object<T> extends Object
Class Searching.Object is the base class for a helper object used to search an array of type T[].
Version:
22-Nov-2011
Author:
Alan Kaminsky
  • Constructor Details

    • Object

      public Object()
  • Method Details

    • compare

      public abstract int compare(T a, T b)
      Compare two elements according to the desired ordering criterion.
      Parameters:
      a - First element being compared.
      b - Second element being compared.
      Returns:
      A number less than, equal to, or greater than 0 if a comes before, is the same as, or comes after b, respectively.