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

deprecated:

use #name() instead

4 getDescription()

deprecated:

use #description() instead

Members

RoleMemento(String)

Creates a new role with the specified name. Description is left blank.

RoleMemento(String, String)

Creates a new role with the specified name and description.

getName()

deprecated:

use #name() instead

getDescription()

deprecated:

use #description() instead