public interface Identifiable
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 Object.equals(java.lang.Object)
.
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier()
Gets a string intended to function as an identifier for the object.
|
String getIdentifier()
Copyright © 2015–2022 SciJava. All rights reserved.