Class OrPermission

  • All Implemented Interfaces:
    CommandPermission

    public final class OrPermission
    extends java.lang.Object
    implements CommandPermission
    Accepts as long as at least one of the permissions is accepted
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      @NonNull java.util.Collection<@NonNull CommandPermission> getPermissions()
      Get the permission nodes
      int hashCode()  
      static @NonNull CommandPermission of​(@NonNull java.util.Collection<CommandPermission> permissions)
      Create a new OR permission
      java.lang.String toString()
      Get a string representation of the permission
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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
      • toString

        public java.lang.String toString()
        Description copied from interface: CommandPermission
        Get a string representation of the permission
        Specified by:
        toString in interface CommandPermission
        Overrides:
        toString in class java.lang.Object
        Returns:
        String representation of the permission node
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object