|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.sal.api.user.UserKey
public final class UserKey
Represents an identifier that uniquely identifies a user for the duration of its existence.
Constructor Summary | |
---|---|
UserKey(String userkey)
Default constructor: builds a UserKey from its string representation. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
static UserKey |
fromLong(long userId)
Builds a UserKey object from a long id. |
String |
getStringValue()
Returns a string representation of the current key. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UserKey(@Nonnull String userkey)
userkey
- the string representation of a UserKey. Must not be null.Method Detail |
---|
@Nonnull public String getStringValue()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static UserKey fromLong(long userId)
UserKey
object from a long id. The id will be converted to a String first.
userId
- a user ID
UserKey
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |