Class std.rt.Comparable
Synopsis
public abstract class Comparable< C >
Represents objects which are comparable.
These are objects which can be compared by value (smaller, equal, or larger) and can be used in sorting operations etc.
Fields
Constructors
Methods
public abstract int opCompare(C other);
Peform the comparison.
For a.opCompare(b), return negative if a < b, 0 if a == b, positive if a > b. This can be memorized as returning (a - b).