Enum Facet.FacetType

java.lang.Object
java.lang.Enum<Facet.FacetType>
masecla.modrinth4j.model.search.Facet.FacetType
All Implemented Interfaces:
Serializable, Comparable<Facet.FacetType>, java.lang.constant.Constable
Enclosing class:
Facet

public static enum Facet.FacetType extends Enum<Facet.FacetType>
The type of the facet.
  • Enum Constant Details

    • CATEGORIES

      public static final Facet.FacetType CATEGORIES
      The categories facet
    • VERSIONS

      public static final Facet.FacetType VERSIONS
      The versions facet
    • LICENSE

      public static final Facet.FacetType LICENSE
      The license facet
    • PROJECT_TYPE

      public static final Facet.FacetType PROJECT_TYPE
      The project type facet
  • Method Details

    • values

      public static Facet.FacetType[] 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 Facet.FacetType 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