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()
}
| 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. |