public class Identity extends java.lang.Object implements java.io.Serializable, LocalId
String
name, Long
Id, and
String
UUID.Constructor and Description |
---|
Identity()
Constructor that constructs an empty
Identity object. |
Identity(java.lang.Long id_,
java.lang.String name_)
Constructor that constructs an
Identity object with given name and Id. |
Identity(java.lang.Long id_,
java.lang.String uuid_,
java.lang.String name_)
Constructor that constructs an
Identity object with given name, UUID, and Id |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o_)
Returns whether the
Identity been passed is equal to this
Identity . |
java.lang.Long |
getId()
Returns the Id of the object.
|
java.lang.String |
getName()
Returns the name of the object.
|
java.lang.String |
getUuid()
Returns the UUID of the object.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
setId(java.lang.Long id_)
Sets the Id of the object.
|
void |
setName(java.lang.String name_)
Sets the name of the object.
|
void |
setUuid(java.lang.String uuid_)
Sets the UUID of the object.
|
java.lang.String |
toString()
Returns a string representation of the
Identity . |
public Identity()
Identity
object.public Identity(java.lang.Long id_, java.lang.String name_)
Identity
object with given name and Id.id_
- Id of the objectname_
- Name of the objectpublic Identity(java.lang.Long id_, java.lang.String uuid_, java.lang.String name_)
Identity
object with given name, UUID, and Idid_
- Id of the objectuuid_
- UUID of the objectname_
- Name of the objectpublic java.lang.Long getId()
getId
in interface LocalId
setId(Long)
public void setId(java.lang.Long id_)
public java.lang.String getUuid()
setUuid(String)
public void setUuid(java.lang.String uuid_)
uuid_
- UUID to setgetUuid()
public java.lang.String getName()
setName(String)
public void setName(java.lang.String name_)
name_
- name to setgetName()
public java.lang.String toString()
Identity
. In general,
the toString method returns a string that "textually represents" this
object.toString
in class java.lang.Object
public boolean equals(java.lang.Object o_)
Identity
been passed is equal to this
Identity
.equals
in class java.lang.Object
o_
- the reference object with which to compare.true
if both objects are equal, otherwise
false
public int hashCode()
Hashtable
.hashCode
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.