Class ObjectIdentifier
- java.lang.Object
-
- ch.ethz.sis.openbis.generic.asapi.v3.dto.common.id.ObjectIdentifier
-
- All Implemented Interfaces:
IObjectId
,java.io.Serializable
- Direct Known Subclasses:
ExperimentIdentifier
,ProjectIdentifier
,SampleIdentifier
@JsonObject("as.dto.common.id.ObjectIdentifier") public abstract class ObjectIdentifier extends java.lang.Object implements IObjectId
Base class for ids that identify objects by identifiers. An identifier is a mutable user-defined string. An identifier is assigned to an object during the object creation but can change afterwards. An object's identifier is not guaranteed to be always the same, e.g. a sample identifier changes when the sample is moved to a different space.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ObjectIdentifier()
ObjectIdentifier(java.lang.String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getIdentifier()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-