Enum EditableFileType.FileType

java.lang.Object
java.lang.Enum<EditableFileType.FileType>
masecla.modrinth4j.model.version.files.EditableFileType.FileType
All Implemented Interfaces:
Serializable, Comparable<EditableFileType.FileType>, java.lang.constant.Constable
Enclosing class:
EditableFileType

public static enum EditableFileType.FileType extends Enum<EditableFileType.FileType>
The type of the file. The documentation is unclear on what this is used for.
  • Enum Constant Details

    • REQUIRED_RESOURCE_PACK

      @SerializedName("required-resource-pack") public static final EditableFileType.FileType REQUIRED_RESOURCE_PACK
    • OPTIONAL_RESOURCE_PACK

      @SerializedName("optional-resource-pack") public static final EditableFileType.FileType OPTIONAL_RESOURCE_PACK
  • Method Details

    • values

      public static EditableFileType.FileType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EditableFileType.FileType valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null