|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Identifiable
An object which can express itself by some unique string.
Two objects that produce the same identifier string can be considered equivalent by some metric. The main use case for these identifiers is as a weak form of long-term serialization:
In this way, objects themselves do not need to be Serializable
, nor
do multiple potentially equivalent objects need to be synthesized and then
compared using #equals
.
Method Summary | |
---|---|
String |
getIdentifier()
Gets a string intended to function as an identifier for the object. |
Method Detail |
---|
String getIdentifier()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |