RoleMemento (record)
Immutable serializable value held by UserMemento .
API
RoleMemento.java
record RoleMemento {
static final String LOGICAL_TYPE_NAME;
RoleMemento(String name) (1)
RoleMemento(String name, String description) (2)
boolean equals(Object obj)
int hashCode()
String getName() (3)
String getDescription() (4)
}
| 1 | RoleMemento(String)
Creates a new role with the specified name. Description is left blank. |
||
| 2 | RoleMemento(String, String)
Creates a new role with the specified name and description. |
||
| 3 | getName()
|
||
| 4 | getDescription()
|