Enum SearchType

java.lang.Object
java.lang.Enum<SearchType>
com.amilesend.discogs.model.database.type.SearchType
All Implemented Interfaces:
Serializable, Comparable<SearchType>

public enum SearchType extends Enum<SearchType>
Defines the resource types to search for
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static SearchType[] 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 SearchType 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
    • fromValue

      public static SearchType fromValue(String value)
      Gets the SearchType enum reference from the given value.
      Parameters:
      value - the value
      Returns:
      the search type, or null if none exist
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SearchType>
    • getValue

      public String getValue()
      The query parameter attribute value.