|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.gadgets.opensocial.model.PersonId
@Immutable public final class PersonId
Representation of the unique identifier for a person. This ID must be nonempty and may only contain alphanumeric characters, underscore, dot, or dash,
and must uniquely identify the person in the container (see http://www.opensocial.org/Technical-Resources/opensocial-spec-v09/OpenSocial-Specification.html#rfc.section.4.1.1.1)
| Constructor Summary | |
|---|---|
PersonId(String id)
Creates a new PersonId that wraps the id passed in |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
hashCode()
|
String |
toString()
|
String |
value()
Returns the value of the identifier as a String. |
static PersonId |
valueOf(String id)
Convert the String value to a PersonId object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PersonId(String id)
id - the String id stored internally| Method Detail |
|---|
public String value()
String.
Stringpublic String toString()
toString in class Objectpublic static PersonId valueOf(String id)
String value to a PersonId object.
id - String value to use
PersonId with the underlying value of idpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||