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 IObjectIdBase 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 protectedObjectIdentifier()ObjectIdentifier(java.lang.String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetIdentifier()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-