Interface PreparedComparison<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int compareTo​(T obj)
      return a negative int, zero or a positive int if the object being held in 'this' is smaller, equal or greater than the passed object.

      Typical implementation: return this.object - obj;
    • Method Detail

      • compareTo

        int compareTo​(T obj)
        return a negative int, zero or a positive int if the object being held in 'this' is smaller, equal or greater than the passed object.

        Typical implementation: return this.object - obj;