Interface Identifier
-
- All Superinterfaces:
Immutable
,MutationBehaviour<Immutable>
,Serializable
- All Known Subinterfaces:
WritableIdentifier
- All Known Implementing Classes:
AbstractIdentifier
,AbstractQName
,AbstractStringIdentifier
,AbstractUUIDIdentifier
,DatastoreIdentifier
,MountPointIdentifier
,QName
,QNameModule
,QualifiedQName
,RevisionSourceIdentifier
,SemVerSourceIdentifier
,SourceIdentifier
,UnqualifiedQName
public interface Identifier extends Serializable, Immutable
General identifier interface. It is primarily a marker for all things that identify concepts -- such as names, addresses, classes, etc. We do not require too much, just that the identifiers are serializable (and thus transferable).Implementations are expected to implement
hashCode()
andequals(Object)
methods in a way, which ensures that objects before and after serialization are considered equal.Implementations are advised to use the
Externalizable
Proxy pattern to allow future evolution of their serialization format. For further efficiency, implementations should consider implementingWritableObject
, so they can be efficiently embedded in otherSerializable
andWritableObject
s objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
String
toString()
-