@JsonObject(value="Role")
public final class Role
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Role(java.lang.String code,
boolean spaceLevel)
Creates a new instance from specified code and space level flag.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
Returns role code.
|
int |
hashCode() |
boolean |
isSpaceLevel()
Returns
true if this role is for a particular space. |
java.lang.String |
toString() |
public Role(java.lang.String code, boolean spaceLevel)
java.lang.IllegalArgumentException
- if specified code is null
or an empty string.public final java.lang.String getCode()
public final boolean isSpaceLevel()
true
if this role is for a particular space.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object