Enum PermissionType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PermissionType>

    public enum PermissionType
    extends java.lang.Enum<PermissionType>
    Defines the set of types required for the default permissions
    • Field Detail

      • type

        public final java.lang.String type
    • Constructor Detail

      • PermissionType

        private PermissionType​(java.lang.String type)
    • Method Detail

      • values

        public static PermissionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PermissionType c : PermissionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PermissionType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • fromString

        public static PermissionType fromString​(java.lang.String string)
        If there is any type that matches the string, return it. If no matches, return NONE.
        Parameters:
        string - a permission type value
        Returns:
        the closest matching default permission type