Class PermissionSet

    • Method Detail

      • all

        public static PermissionSet all()
        Returns a PermissionSet containing all permissions.
        Returns:
        A PermissionSet containing all permissions.
      • none

        public static PermissionSet none()
        Returns a PermissionSet containing no permissions.
        Returns:
        A PermissionSet containing no permissions.
      • of

        public static PermissionSet of​(long rawValue)
        Returns a PermissionSet containing all the permissions represented by the raw value.
        Parameters:
        rawValue - A bit-wise OR evaluation of multiple values returned by Permission.getValue().
        Returns:
        A PermissionSet containing all the permissions represented by the raw value.
      • of

        public static PermissionSet of​(Permission... permissions)
        Returns a PermissionSet containing all the supplied permissions.
        Parameters:
        permissions - The permissions to add to the PermissionSet.
        Returns:
        A PermissionSet containing all the supplied permissions.
      • and

        public PermissionSet and​(PermissionSet other)
        Performs a logical AND of of this permission set with the other permission set.
        Parameters:
        other - The other permission set.
        Returns:
        A new permission set of this set AND the other set.
      • or

        public PermissionSet or​(PermissionSet other)
        Performs a logical OR of this permission set with the other permission set.
        Parameters:
        other - The other permission set.
        Returns:
        A new permission set of this set OR the other set.
      • not

        public PermissionSet not()
        Performs a logical NOT of this permission set.
        Returns:
        A new permission set representing this set's complement.
      • xor

        public PermissionSet xor​(PermissionSet other)
        Performs a logical XOR of this permission set with the other permission set.
        Parameters:
        other - The other permission set.
        Returns:
        A new permission set of this set XOR the other set.
      • subtract

        public PermissionSet subtract​(PermissionSet other)
        Subtracts the contents of the given permission set from this permission set.
        Parameters:
        other - The other permission set.
        Returns:
        A new permission set with the contents of the other set removed.
      • getRawValue

        public long getRawValue()
        Gets the raw value for this PermissionSet.
        Returns:
        The raw value for this PermissionSet.
        See Also:
        PermissionSet