Enum Class SortType

All Implemented Interfaces:
Serializable, Comparable<SortType>, Constable

public enum SortType extends Enum<SortType>
Represents the different criteria or fields by which a list of items (e.g., Project objects) can be sorted. Used by controllers or display utilities to determine the sort order.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Indicates that sorting should be performed based on a date attribute of the items, typically the project's open date or another relevant date.
    Indicates that sorting should be performed based on the name attribute of the items.
    Indicates that sorting should be performed based on a price attribute of the items.
  • Method Summary

    Modifier and Type
    Method
    Description
    static SortType
    Returns the enum constant of this class with the specified name.
    static SortType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NAME

      public static final SortType NAME
      Indicates that sorting should be performed based on the name attribute of the items.
    • PRICE

      public static final SortType PRICE
      Indicates that sorting should be performed based on a price attribute of the items. The specific price (e.g., for a particular flat type) might be determined by the context where sorting is applied.
    • DATE

      public static final SortType DATE
      Indicates that sorting should be performed based on a date attribute of the items, typically the project's open date or another relevant date.
  • Method Details

    • values

      public static SortType[] 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 SortType 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