@ThreadSafe public interface Identifier extends Serializable, Immutable
Implementations are expected to implement hashCode()
and equals(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 implementing
WritableObject
, so they can be efficiently embedded in other Serializable
and WritableObject
s
objects.
Note that this class is annotated as ThreadSafe
, hence all implementations are expected to be
thread-safe. This is an implication of Immutable
interface contract.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
Copyright © 2019 OpenDaylight. All rights reserved.