Enum Class RefOrder
- All Implemented Interfaces:
Serializable
,Comparable<RefOrder>
,Constable
Defines orderings which can be applied when retrieving references. The actual approach for applying an ordering is
not established or guaranteed by this enumeration; it may vary by SCM implementation or
Ref
type.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionReturn references in ascending alphabetical order.Return references in descending modification order, with the most recently-modified references returned first. -
Method Summary
Modifier and TypeMethodDescriptionstatic RefOrder
fromValueOrNull
(String order) Parses the providedorder
, if possible.static RefOrder
Returns the enum constant of this class with the specified name.static RefOrder[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALPHABETICAL
Return references in ascending alphabetical order. -
MODIFICATION
Return references in descending modification order, with the most recently-modified references returned first.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromValueOrNull
Parses the providedorder
, if possible. If theorder
provided isnull
, empty or does not match a known order,null
is returned.- Parameters:
order
- the order to parse- Returns:
- the parsed order, or
null
if it cannot be parsed
-