Package org.leplus.ristretto.util
Class IdentityObject
- java.lang.Object
-
- org.leplus.ristretto.util.IdentityObject
-
- All Implemented Interfaces:
Serializable
,Cloneable
public final class IdentityObject extends Object implements Cloneable, Serializable
This class is a singleton. It supports serialization and cloning. In both case the unique instance of IdentityObject remains the same object.- Since:
- 1.0.0
- Author:
- Thomas Leplus
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IdentityObject
IT
The singleton.
-
-
-
Field Detail
-
IT
public static final IdentityObject IT
The singleton.
-
-
Method Detail
-
clone
public IdentityObject clone()
- See Also:
Object.clone()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-