public class ObjectIdentity extends Object implements Identifiable
Constructor and Description |
---|
ObjectIdentity()
Zero-arg constructor for an ObjectIdentity.
|
ObjectIdentity(String objectType,
String identifier)
Constructor for an ObjectIdentity taking the object type and identifier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one.
|
String |
getIdentifier()
Get the identifier of the object this objectIdentity refers to.
|
String |
getObjectType()
Get the type of object this objectIdentity refers to.
|
int |
hashCode()
Return a hash code value for the object.
|
void |
setIdentifier(String identifier)
Set the identifier of this objectIdentity.
|
void |
setObjectType(String objectType)
Set the objectType of this objectIdentity.
|
String |
toString()
Return a string representation of the object.
|
public ObjectIdentity()
public String getObjectType()
getObjectType
in interface Identifiable
public String getIdentifier()
getIdentifier
in interface Identifiable
public void setIdentifier(String identifier)
identifier
- the identifier to setpublic void setObjectType(String objectType)
objectType
- the objectType to setpublic boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA