Class AndPermission
- java.lang.Object
-
- cloud.commandframework.permission.AndPermission
-
- All Implemented Interfaces:
CommandPermission
public final class AndPermission extends java.lang.Object implements CommandPermission
Accepts if every single permission is accepted.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)@NonNull java.util.Collection<@NonNull CommandPermission>getPermissions()Get the permission nodesinthashCode()static @NonNull CommandPermissionof(@NonNull java.util.Collection<CommandPermission> permissions)Create a new OR permissionjava.lang.StringtoString()Get a string representation of the permission-
Methods 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 Detail
-
of
public static @NonNull CommandPermission of(@NonNull java.util.Collection<CommandPermission> permissions)
Create a new OR permission- Parameters:
permissions- Permissions to join- Returns:
- Constructed permission
-
getPermissions
public @NonNull java.util.Collection<@NonNull CommandPermission> getPermissions()
Description copied from interface:CommandPermissionGet the permission nodes- Specified by:
getPermissionsin interfaceCommandPermission- Returns:
- Permission nodes
-
toString
public java.lang.String toString()
Description copied from interface:CommandPermissionGet a string representation of the permission- Specified by:
toStringin interfaceCommandPermission- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation of the permission node
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-