Package org.neo4j.cypherdsl.core
Class SortItem
- java.lang.Object
-
- org.neo4j.cypherdsl.core.SortItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSortItem.DirectionSort direction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)@NotNull SortItemascending()Creates a new sort item from this instance, setting the sort direction to ascending.@NotNull SortItemdescending()Creates a new sort item from this instance, setting the sort direction to descending.
-
-
-
Method Detail
-
ascending
@NotNull @Contract(pure=true) public @NotNull SortItem ascending()
Creates a new sort item from this instance, setting the sort direction to ascending.- Returns:
- A new sort item.
-
descending
@NotNull @Contract(pure=true) public @NotNull SortItem descending()
Creates a new sort item from this instance, setting the sort direction to descending.- Returns:
- A new sort item.
-
-