Java java.lang Comparable fields, constructors, methods, implement or subclass

Example usage for Java java.lang Comparable fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang Comparable.

The text is from its open source code.

Implementation

java.lang.Comparable has the following implementations.
Click this link to see all its implementation.

Constructor

Method

Objectclone()
Creates and returns a copy of this object.
intcompareTo(T o)
Compares this object with the specified object for order.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ClassgetClass()
Returns the runtime class of this Object .
inthashCode()
Returns a hash code value for the object.
StringtoString()
Returns a string representation of the object.