Enum Class Sorting

java.lang.Object
java.lang.Enum<Sorting>
se.diabol.jenkins.pipeline.Sorting
All Implemented Interfaces:
Serializable, Comparable<Sorting>, Constable

public enum Sorting extends Enum<Sorting>
The orders the components of a view can be shown in; ids are those 1.x used, which Job DSL writes.
  • Enum Constant Details

    • NONE

      public static final Sorting NONE
    • NAME

      public static final Sorting NAME
    • LATEST_ACTIVITY

      public static final Sorting LATEST_ACTIVITY
    • FAILED_FIRST

      public static final Sorting FAILED_FIRST
  • Method Details

    • values

      public static Sorting[] 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 Sorting 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
    • getId

      public String getId()
    • getDisplayName

      public String getDisplayName()
    • fromId

      public static Sorting fromId(String value)
      The sorting with the given id or name; unknown values, including the 1.x "NoOpComparator", mean none.
    • comparator

      public Comparator<Component> comparator()