Enum Class ListingFilter

Object
Enum<ListingFilter>
ListingFilter
All Implemented Interfaces:
Serializable, Comparable<ListingFilter>, Constable

public enum ListingFilter extends Enum<ListingFilter>
Enum representing different filters for listing. Each enum value corresponds to a specific filter.
  • Enum Constant Details

  • Field Details

    • keyword

      private String keyword
      The keyword associated with this enum value.
  • Constructor Details

    • ListingFilter

      private ListingFilter()
      Default constructor for ListingFilter. Initializes the keyword to null.
    • ListingFilter

      private ListingFilter(String keyword)
      Constructor for ListingFilter with a specific keyword.
      Parameters:
      keyword - the keyword associated with this enum value
  • Method Details

    • values

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

      public static ListingFilter valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • setKeyword

      public void setKeyword(String keyword)
      Sets the keyword for this enum value.
      Parameters:
      keyword - the keyword to set
    • getKeyword

      public String getKeyword()
      Returns the keyword associated with this enum value.
      Returns:
      the keyword
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ListingFilter>
    • fromString

      public static ListingFilter fromString(String value)
      Converts a string to a ListingFilter enum value.
      Parameters:
      value -
      Returns: