T - The concrete type of the primitive object.public abstract class Primitive<T extends Primitive<T>> extends Object implements Cloneable, Comparable<T>
Object class that can be used by all immutable primitive objects. Since
primitives are immutable there is no need for support for the clone() method so it is
disabled.| Constructor and Description |
|---|
Primitive() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone() |
int |
compareTo(T object) |
boolean |
equals(Object object) |
int |
hashCode() |
abstract String |
toString() |
public int compareTo(T object)
compareTo in interface Comparable<T extends Primitive<T>>protected final Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2015 Crater Dog Technologies(TM). All rights reserved.