Enum Class ListingSort

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

public enum ListingSort extends Enum<ListingSort>
This class is used to sort the listings based on certain criteria.
  • Enum Constant Details

    • DEFAULT

      public static final ListingSort DEFAULT
    • REVERSE_DEFAULT

      public static final ListingSort REVERSE_DEFAULT
    • TWO_ROOM_PRICE_DESCENDING

      public static final ListingSort TWO_ROOM_PRICE_DESCENDING
    • TWO_ROOM_PRICE_ASCENDING

      public static final ListingSort TWO_ROOM_PRICE_ASCENDING
    • THREE_ROOM_PRICE_DESCENDING

      public static final ListingSort THREE_ROOM_PRICE_DESCENDING
    • THREE_ROOM_PRICE_ASCENDING

      public static final ListingSort THREE_ROOM_PRICE_ASCENDING
    • OPENING_DATE_ASCENDING

      public static final ListingSort OPENING_DATE_ASCENDING
    • OPENING_DATE_DESCENDING

      public static final ListingSort OPENING_DATE_DESCENDING
    • CLOSING_DATE_ASCENDING

      public static final ListingSort CLOSING_DATE_ASCENDING
    • CLOSING_DATE_DESCENDING

      public static final ListingSort CLOSING_DATE_DESCENDING
  • Field Details

  • Constructor Details

    • ListingSort

      private ListingSort(String title)
  • Method Details

    • values

      public static ListingSort[] 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 ListingSort 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
    • toString

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

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