|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.synyx.hades.domain.Sort
public class Sort
Sort option for queries. You have to provide at least a list of properties to
sort for that must not include null or empty strings. The order
defaults to .
| Nested Class Summary | |
|---|---|
static class |
Sort.Property
Property implements the pairing of an Order and a property. |
| Field Summary | |
|---|---|
static Order |
DEFAULT_ORDER
|
| Constructor Summary | |
|---|---|
Sort(java.util.List<Sort.Property> properties)
Creates a new Sort instance. |
|
Sort(Order order,
java.lang.String... properties)
Creates a new Sort instance. |
|
Sort(java.lang.String... properties)
Creates a new Sort instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
Order |
getOrder()
Deprecated. use Sort.Property.getOrder() while iterating over all
properties |
java.lang.String[] |
getProperties()
Deprecated. prefer iterating over the Sort instance |
int |
hashCode()
|
boolean |
isAscending()
Deprecated. use Sort.Property.isAscending() while iterating over all
properties |
java.util.Iterator<Sort.Property> |
iterator()
|
Sort |
with(Order order)
Deprecated. user Sort.Property.with(Order) instead |
Sort |
withProperties(java.lang.String... properties)
Deprecated. use Sort.Property.withProperties(String...) instead |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Order DEFAULT_ORDER
| Constructor Detail |
|---|
public Sort(java.util.List<Sort.Property> properties)
Sort instance. Takes a List of Sort.Property
properties - must not be null or contain null
or empty stringspublic Sort(java.lang.String... properties)
Sort instance. Order defaults to
.
properties - must not be null or contain null
or empty strings
public Sort(Order order,
java.lang.String... properties)
Sort instance.
order - defaults to (for null
cases, too)properties - must not be null or contain null
or empty strings| Method Detail |
|---|
@Deprecated public java.lang.String[] getProperties()
Sort instance
@Deprecated public Order getOrder()
Sort.Property.getOrder() while iterating over all
properties
@Deprecated public boolean isAscending()
Sort.Property.isAscending() while iterating over all
properties
@Deprecated public Sort with(Order order)
Sort.Property.with(Order) instead
Sort instance with the given order and the same
properties.
order -
@Deprecated public Sort withProperties(java.lang.String... properties)
Sort.Property.withProperties(String...) instead
Sort instance with the given properties and the
same order.
properties -
public java.util.Iterator<Sort.Property> iterator()
iterator in interface java.lang.Iterable<Sort.Property>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||