|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.synyx.hades.domain.Sort.Property
public static class Sort.Property
Property implements the pairing of an Order and a property. It is
used to provide input for Sort
| Constructor Summary | |
|---|---|
Sort.Property(Order order,
java.lang.String property)
Creates a new Sort.Property instance. if order is null
then order defaults to |
|
Sort.Property(java.lang.String property)
Creates a new Sort.Property instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
|
Order |
getOrder()
Returns the order the property shall be sorted for. |
int |
hashCode()
|
boolean |
isAscending()
Returns whether sorting for this property shall be ascending. |
Sort.Property |
with(Order order)
Returns a new Sort.Property with the given Order. |
Sort |
withProperties(java.lang.String... properties)
Returns a new Sort instance for the given properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sort.Property(Order order,
java.lang.String property)
Sort.Property instance. if order is null
then order defaults to
order - can be nullproperty - must not be null or emptypublic Sort.Property(java.lang.String property)
Sort.Property instance. Takes a single property.
Order defaults to
property - - must not be null or empty| Method Detail |
|---|
public Order getOrder()
public java.lang.String getName()
public boolean isAscending()
public Sort.Property with(Order order)
Sort.Property with the given Order.
order -
public Sort withProperties(java.lang.String... properties)
Sort instance for the given properties.
properties -
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||