Enum Class SortOrderItem.Direction

java.lang.Object
java.lang.Enum<SortOrderItem.Direction>
org.bremersee.comparator.model.SortOrderItem.Direction
All Implemented Interfaces:
Serializable, Comparable<SortOrderItem.Direction>, Constable
Enclosing class:
SortOrderItem

public static enum SortOrderItem.Direction extends Enum<SortOrderItem.Direction>
The direction.
  • Enum Constant Details

  • Method Details

    • values

      public static SortOrderItem.Direction[] 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 SortOrderItem.Direction 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
    • isAscending

      public boolean isAscending()
      Returns whether the direction is ascending.
      Returns:
      true if ascending, false otherwise.
    • isDescending

      public boolean isDescending()
      Returns whether the direction is descending.
      Returns:
      true if descending, false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SortOrderItem.Direction>
    • fromString

      public static SortOrderItem.Direction fromString(String direction)
      From string.
      Parameters:
      direction - the direction
      Returns:
      the direction