Java.lang.Comparable

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

public interface Comparable<T> {

    int compareTo(T o)

}

A class that implements Comparable is said to have a natural order.