Java.lang.Comparable

From NovaOrdis Knowledge Base
Revision as of 19:11, 29 March 2018 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.