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() |
getFactory, getSourceNode, toString
public SortKey(Path field, boolean desc)
public Path getField()
public boolean isDesc()
public com.fasterxml.jackson.databind.JsonNode toJson()
toJson
in class JsonObject
public static SortKey fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2014. All rights reserved.