- All Implemented Interfaces:
Serializable
,Comparable<SortItem.Direction>
,Constable
,Visitable
- Enclosing class:
SortItem
@API(status=STABLE)
public static enum SortItem.Direction
extends Enum<SortItem.Direction>
implements Visitable
Sort direction.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname.static SortItem.Direction
Returns the enum constant of this class with the specified name.static SortItem.Direction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Undefined direction. -
ASC
Ascending order. -
DESC
Descending order.
-
-
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
-
getSymbol
- Returns:
- The database internal symbol for a direction.
-
toString
Description copied from interface:Visitable
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname. The representation however is not cached - in contrast to the ones for full statements. UsingtoString
is recommended for debugging purposes mainly, and not for production use.The concrete classname has been prepended to help debugging and actually to discourage using fragments to build queries without explicitly rendering them, either as statement or going through the renderer on purpose.
- Specified by:
toString
in interfaceVisitable
- Overrides:
toString
in classEnum<SortItem.Direction>
- Returns:
- A string representation of this visitable formatted as Classname{cypher=value}
-