@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, implementation should implement WritableObject
,
so they can be efficiently embedded in other Serializable
objects.
Note that this class is annotated as ThreadSafe
, hence all implementations are expected to be
thread-safe.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
Copyright © 2018 OpenDaylight. All rights reserved.