public class IGCSearchSorting extends Object
| Constructor and Description |
|---|
IGCSearchSorting(String property)
Creates a new search sorting criteria directly, sorting by the provided property in ascending order.
|
IGCSearchSorting(String property,
Boolean ascending)
Creates a new search sorting criteria directly.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAscending() |
String |
getProperty() |
com.fasterxml.jackson.databind.node.ObjectNode |
getSortObject()
Returns the JSON object representing the condition.
|
void |
setAscending(Boolean ascending) |
void |
setProperty(String property) |
static IGCSearchSorting |
sortFromNonPropertySequencingOrder(SequencingOrder sequencingOrder)
Returns an IGCSearchSorting equivalent to the provided SequencingOrder, so long as the provided
sequencingOrder is not one of [ PROPERTY_ASCENDING, PROPERTY_DESCENDING ] (because these must
be explicitly mapped on a type-by-type basis).
|
public IGCSearchSorting(String property, Boolean ascending)
property - the property of an asset type to search againstascending - whether to sort results in ascending order (true) or descending order (false)public IGCSearchSorting(String property)
property - the property of an asset type to search againstpublic String getProperty()
public void setProperty(String property)
public Boolean getAscending()
public void setAscending(Boolean ascending)
public com.fasterxml.jackson.databind.node.ObjectNode getSortObject()
public static IGCSearchSorting sortFromNonPropertySequencingOrder(SequencingOrder sequencingOrder)
sequencingOrder - the non-property SequencingOrder to create an IGC sort order fromCopyright © 2018–2019 ODPi. All rights reserved.