com.croftsoft.core.util.id
Interface Id
- All Superinterfaces:
- Cloneable, Serializable
- All Known Subinterfaces:
- ModelId
- All Known Implementing Classes:
- IntId, LongId, SecureId, SeriModelId, StringId
public interface Id
- extends Cloneable, Serializable
An Id is used for consistent cross-process identification.
Id objects are useful for identifying, by equality, distributed
and persistent objects (space and time, respectively).
An object that implements Id has the following characteristics:
- immutable;
- Serializable and deeply Cloneable; and
- results from the methods equals() and hashCode() are not based
upon transient data and are consistent across processes.
- Since:
- 2000-01-16
- Version:
- 2003-06-17
- Author:
- David Wallace Croft
clone
Object clone()
equals
boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
int hashCode()
- Overrides:
hashCode
in class Object
CroftSoft Core Javadoc (2008-09-28 20:58:02)