public class SortKey extends Sort
{ fieldName: $asc} or { fieldName: $desc }
| Constructor and Description |
|---|
SortKey(Path field,
boolean desc)
Constructs a sort key with the values
|
| Modifier and Type | Method and Description |
|---|---|
static SortKey |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node) |
Path |
getField()
Returns the sort field
|
boolean |
isDesc()
Returns if the sort is descending
|
com.fasterxml.jackson.databind.JsonNode |
toJson() |
fromJson, isRequired, isRequiredgetFactory, getSourceNode, toStringpublic SortKey(Path field, boolean desc)
public Path getField()
public boolean isDesc()
public com.fasterxml.jackson.databind.JsonNode toJson()
toJson in class JsonObjectpublic static SortKey fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2015. All rights reserved.