public final enum

RefOrder

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.stash.repository.RefOrder

Class Overview

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.

Summary

Enum Values
RefOrder  ALPHABETICAL  Return references in ascending alphabetical order. 
RefOrder  MODIFICATION  Return references in descending modification order, with the most recently-modified references returned first. 
Public Methods
@Nullable static RefOrder fromValueOrNull(String order)
Parses the provided order, if possible.
static RefOrder valueOf(String name)
final static RefOrder[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final RefOrder ALPHABETICAL

Return references in ascending alphabetical order.

public static final RefOrder MODIFICATION

Return references in descending modification order, with the most recently-modified references returned first.

Public Methods

@Nullable public static RefOrder fromValueOrNull (String order)

Parses the provided order, if possible. If the order provided is null, 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

public static RefOrder valueOf (String name)

public static final RefOrder[] values ()