public class OrderAtState extends BuildableOrderState
OrderState that represents a transition induced by the
introduction of a timestamp token. The expected next token is either a
direction token or a new key to sort on.order| Modifier | Constructor and Description |
|---|---|
protected |
OrderAtState(BuiltOrder order,
String key,
Timestamp timestamp)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
BuiltOrder |
$order()
Return the
BuiltOrder that is being constructed. |
default OrderDirectionState |
ascending()
Add the
Direction.ASCENDING direction to the last key that
was specified in BuiltOrder that is building |
default OrderDirectionState |
decreasing()
Alias for
descending(). |
default OrderDirectionState |
descending()
Add the
Direction.DESCENDING direction to the last key that
was specified in BuiltOrder that is building |
default OrderDirectionState |
increasing()
Alias for
ascending(). |
default OrderDirectionState |
largestFirst()
Alias for
descending(). |
default OrderDirectionState |
largestLast()
Alias for
ascending(). |
default OrderDirectionState |
reversed()
Alias for
descending(). |
default OrderDirectionState |
smallestFirst()
Alias for
ascending(). |
default OrderDirectionState |
smallestLast()
Alias for
descending(). |
OrderThenState |
then()
Transition to a state where a new key can be added.
|
default OrderByState |
then(String key)
Shortcut for calling
then() immediately followed by
OrderThenState.by(String) with the provided key. |
build, specpublic OrderThenState then()
public BuiltOrder $order()
BuiltOrder that is being constructed.BuiltOrderpublic OrderByState then(String key)
then() immediately followed by
OrderThenState.by(String) with the provided key.key - public OrderDirectionState ascending()
Direction.ASCENDING direction to the last key that
was specified in BuiltOrder that is buildingpublic OrderDirectionState decreasing()
descending().public OrderDirectionState descending()
Direction.DESCENDING direction to the last key that
was specified in BuiltOrder that is buildingpublic OrderDirectionState increasing()
ascending().public OrderDirectionState largestFirst()
descending().public OrderDirectionState largestLast()
ascending().public OrderDirectionState reversed()
descending().public OrderDirectionState smallestFirst()
ascending().public OrderDirectionState smallestLast()
descending().