public static final class SessionManager.Session
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the attribute with the given name.
|
java.util.Set<java.lang.String> |
getAttributeNames()
Returns the names of all currently existing attributes.
|
java.util.UUID |
getID() |
java.lang.String |
getUserID() |
boolean |
hasAttribute(java.lang.String name)
Returns whether this session contains an attribute with the given
name.
|
int |
hashCode() |
void |
removeAttribute(java.lang.String name)
Removes the attribute with the given name.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets the value of the attribute with the given name.
|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.UUID getID()
public java.lang.String getUserID()
public boolean hasAttribute(java.lang.String name)
name
- The name of the attribute to check fortrue
if this session contains an attribute with the
given name, false
otherwisepublic java.lang.Object getAttribute(java.lang.String name)
null
is returned.name
- The name of the attribute whose value to getnull
public void setAttribute(java.lang.String name, java.lang.Object value)
name
- The name of the attribute whose value to setvalue
- The new value of the attributepublic void removeAttribute(java.lang.String name)
name
- The name of the attribute to removepublic java.util.Set<java.lang.String> getAttributeNames()