java.lang
Interface Comparable<T>

All Known Implementing Classes:
Boolean, Character, ElementType, Enum, Integer, Long, RetentionPolicy

public interface Comparable<T>


Method Summary
 int compareTo(T o)
          Compares this with another Object.
 

Method Detail

compareTo

int compareTo(T o)
Compares this with another Object. Returns -1 if this object is smaller, 0 if both objects are equal and 1 if this object is bigger.

Parameters:
o - the object to compare with
Returns:
one of the values -1, 0, 1