public static final class PagedRecordTopicDetails.Attributes.PagedRecordOrderingPolicy.OrderKey extends Object
Constructor and Description |
---|
PagedRecordTopicDetails.Attributes.PagedRecordOrderingPolicy.OrderKey(String fieldName)
Creates an order key that specifies a field should be sorted
in ascending order with no additional rules.
|
PagedRecordTopicDetails.Attributes.PagedRecordOrderingPolicy.OrderKey(String fieldName,
PagedTopicDetails.Attributes.Order order)
Creates an order key specifying a field to sort and the
order.
|
PagedRecordTopicDetails.Attributes.PagedRecordOrderingPolicy.OrderKey(String fieldName,
PagedTopicDetails.Attributes.Order order,
PagedTopicDetails.Attributes.Rules rules)
Creates an order key specifying a field to sort, the sort
order and any additional rules.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getFieldName()
Returns the field name.
|
PagedTopicDetails.Attributes.Order |
getOrder()
Returns the order that the field is to be sorted into.
|
PagedTopicDetails.Attributes.Rules |
getRules()
Returns additional rules used when sorting.
|
int |
hashCode() |
String |
toString() |
public PagedRecordTopicDetails.Attributes.PagedRecordOrderingPolicy.OrderKey(String fieldName) throws IllegalArgumentException
fieldName
- the name of the field to sort onIllegalArgumentException
- if fieldName
is
specified as nullpublic PagedRecordTopicDetails.Attributes.PagedRecordOrderingPolicy.OrderKey(String fieldName, PagedTopicDetails.Attributes.Order order) throws IllegalArgumentException
fieldName
- the name of the field to sort onorder
- the order of sorting. If null,
ascending
is assumedIllegalArgumentException
- if fieldName
is
specified as nullpublic PagedRecordTopicDetails.Attributes.PagedRecordOrderingPolicy.OrderKey(String fieldName, PagedTopicDetails.Attributes.Order order, PagedTopicDetails.Attributes.Rules rules) throws IllegalArgumentException
fieldName
- the name of the field to sort onorder
- the order of sorting. If null,
ascending
is assumedrules
- additional rules. If this is null,
NO_RULES
is assumedIllegalArgumentException
- if fieldName
is
specified as nullpublic String getFieldName()
public PagedTopicDetails.Attributes.Order getOrder()
public PagedTopicDetails.Attributes.Rules getRules()
NO_RULES
Copyright © 2016 Push Technology Ltd. All Rights Reserved.