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 nodesinthashCode()static @NonNull CommandPermissionof(@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, waitMethods 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:CommandPermissionGet the permission nodes- Specified by:
getPermissionsin interfaceCommandPermission- Returns:
- Permission nodes
-
toString
Description copied from interface:CommandPermissionGet a string representation of the permission- Specified by:
toStringin interfaceCommandPermission- Overrides:
toStringin classObject- Returns:
- String representation of the permission node
-
equals
-
hashCode
public int hashCode()
-