MemoryGroup (Apache Tomcat 9.0.111 API Documentation)
Description: declaration: package: org.apache.catalina.users, class: MemoryGroup

# Class MemoryGroup

java.lang.Object
org.apache.catalina.users.AbstractGroup
org.apache.catalina.users.GenericGroup<MemoryUserDatabase>
org.apache.catalina.users.MemoryGroup

All Implemented Interfaces:
  `Principal, Group`

@Deprecated public class MemoryGroup extends GenericGroup<MemoryUserDatabase>
Deprecated.
Use `GenericGroup` instead.

Concrete implementation of `Group` for the `MemoryUserDatabase` implementation of `UserDatabase`.

Since:
  4.1

- ## Field Summary

  ### Fields inherited from class GenericGroup

  `database, roles`

  ### Fields inherited from class AbstractGroup

  `description, groupname`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `toString()`
  Deprecated.
  Return a String representation of this group in XML format.

  ### Methods inherited from class GenericGroup

  `addRole, equals, getRoles, getUserDatabase, getUsers, hashCode, isInRole, removeRole, removeRoles`

  ### Methods inherited from class AbstractGroup

  `getDescription, getGroupname, getName, setDescription, setGroupname`

  ### Methods inherited from class Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface Principal

  `implies`

- ## Method Details

  - ### toString

    public String toString()
    Deprecated.

    Return a String representation of this group in XML format.

    Specified by:
      `toString` in interface `Principal`
    Overrides:
      `toString` in class `Object`