Class PersonId
java.lang.Object
com.atlassian.gadgets.opensocial.model.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 OpenSocial Specification)
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PersonId
Creates a new PersonId that wraps the id passed in- Parameters:
id- theStringid stored internally
-
-
Method Details
-
value
Returns the value of the identifier as aString.- Returns:
- the value of the identifier as a
String
-
toString
-
valueOf
Convert theStringvalue to aPersonIdobject.- Parameters:
id-Stringvalue to use- Returns:
PersonIdwith the underlying value ofid
-
equals
-
hashCode
public int hashCode()
-