Class AndPermission
java.lang.Object
cloud.commandframework.permission.AndPermission
- All Implemented Interfaces:
CommandPermission
@API(status=INTERNAL,
consumers="cloud.commandframework.*")
public final class AndPermission
extends Object
implements CommandPermission
Accepts if every single permission is accepted.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@NonNull Collection<@NonNull CommandPermission>
Get the permission nodesint
hashCode()
static @NonNull CommandPermission
of
(@NonNull Collection<CommandPermission> permissions) Create a new OR permissiontoString()
Get a string representation of the permissionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface cloud.commandframework.permission.CommandPermission
and, and, or, or
-
Method Details
-
of
Create a new OR permission- Parameters:
permissions
- Permissions to join- Returns:
- Constructed permission
-
getPermissions
Description copied from interface:CommandPermission
Get the permission nodes- Specified by:
getPermissions
in interfaceCommandPermission
- Returns:
- Permission nodes
-
toString
Description copied from interface:CommandPermission
Get a string representation of the permission- Specified by:
toString
in interfaceCommandPermission
- Overrides:
toString
in classObject
- Returns:
- String representation of the permission node
-
equals
-
hashCode
public int hashCode()
-