Class OneRole

    • Field Detail

      • role

        private final String role
    • Constructor Detail

      • OneRole

        OneRole​(String role)
    • Method Detail

      • contains

        public boolean contains​(String roleName)
        Description copied from interface: Roles
        Determine if this collection contains the given role name.
        Specified by:
        contains in interface Roles
        Parameters:
        roleName - the role name
        Returns:
        true if the role is contained in this collection, false otherwise
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: Roles
        Determine whether this roles collection is empty.
        Specified by:
        isEmpty in interface Roles
        Returns:
        true if the collection is empty, false otherwise
      • and

        public Roles and​(Roles other)
        Description copied from interface: Roles
        Get the intersection of this collection and another.
        Specified by:
        and in interface Roles
        Parameters:
        other - the other roles collection (must not be null)
        Returns:
        the intersection (not null)
      • or

        public Roles or​(Roles other)
        Description copied from interface: Roles
        Get the union of this collection and another.
        Specified by:
        or in interface Roles
        Parameters:
        other - the other roles collection (must not be null)
        Returns:
        the union (not null)
      • minus

        public Roles minus​(Roles other)
        Description copied from interface: Roles
        Get a roles collection which consists of the roles in this collection minus the roles in the other collection.
        Specified by:
        minus in interface Roles
        Parameters:
        other - the other collection (must not be null)
        Returns:
        the difference (not null)
      • addSuffix

        public Roles addSuffix​(String suffix)
        Description copied from interface: Roles
        Get a roles collection which adds a suffix to all role names.
        Specified by:
        addSuffix in interface Roles
        Parameters:
        suffix - the suffix to add (must not be null)
        Returns:
        the new roles collection (not null)
      • addPrefix

        public Roles addPrefix​(String prefix)
        Description copied from interface: Roles
        Get a roles collection which adds a prefix to all role names.
        Specified by:
        addPrefix in interface Roles
        Parameters:
        prefix - the prefix to add (must not be null)
        Returns:
        the new roles collection (not null)