Package org.opendaylight.yangtools.util
Class AbstractIdentifier<T>
java.lang.Object
org.opendaylight.yangtools.util.AbstractIdentifier<T>
- Type Parameters:
T
- Object type
- All Implemented Interfaces:
Serializable
,Identifier
,Immutable
- Direct Known Subclasses:
AbstractStringIdentifier
,AbstractUUIDIdentifier
,DatastoreIdentifier
An abstract
Identifier
backed by an immutable object. Subclasses have no control over hashCode()
and equals(Object)
, hence they should not add any fields.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AbstractIdentifier
-
-
Method Details
-
getValue
-
hashCode
public final int hashCode()- Specified by:
hashCode
in interfaceIdentifier
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceIdentifier
- Overrides:
equals
in classObject
-
toString
- Specified by:
toString
in interfaceIdentifier
- Overrides:
toString
in classObject
-