Package com.sas.lsaf.core
Class ObjectIdentity
- java.lang.Object
-
- com.sas.lsaf.core.AbstractIdentifiable
-
- com.sas.lsaf.core.ObjectIdentity
-
- All Implemented Interfaces:
Identifiable
,java.io.Serializable
public class ObjectIdentity extends AbstractIdentifiable
Uniquely identifies an object anywhere in the system. It is a combination of identifier and object type.- Since:
- 1.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectIdentity(java.lang.String typeId, java.lang.String id)
It is not intended or recommended that the consumer of this API construct these objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
-
-
-
Constructor Detail
-
ObjectIdentity
public ObjectIdentity(java.lang.String typeId, java.lang.String id)
It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the object identity instances returned by the API.- Parameters:
typeId
- the object type of this object identity.id
- the unique identifier for the object instance.
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractIdentifiable
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractIdentifiable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractIdentifiable
-
-