|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.domain.Sort.Order
public static class Sort.Order
Property implements the pairing of an Order
and a property. It is
used to provide input for Sort
Constructor Summary | |
---|---|
Sort.Order(Sort.Direction direction,
String property)
Creates a new Sort.Order instance. if order is null
then order defaults to |
|
Sort.Order(String property)
Creates a new Sort.Order instance. |
Method Summary | |
---|---|
static List<Sort.Order> |
create(Sort.Direction direction,
Iterable<String> properties)
|
boolean |
equals(Object obj)
|
Sort.Direction |
getDirection()
Returns the order the property shall be sorted for. |
String |
getProperty()
Returns the property to order for. |
int |
hashCode()
|
boolean |
isAscending()
Returns whether sorting for this property shall be ascending. |
String |
toString()
|
Sort.Order |
with(Sort.Direction order)
Returns a new Sort.Order with the given Sort.Order . |
Sort |
withProperties(String... properties)
Returns a new Sort instance for the given properties. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Sort.Order(Sort.Direction direction, String property)
Sort.Order
instance. if order is null
then order defaults to
direction
- can be null
property
- must not be null
or emptypublic Sort.Order(String property)
Sort.Order
instance. Takes a single property. Order
defaults to
property
- - must not be null
or emptyMethod Detail |
---|
public static List<Sort.Order> create(Sort.Direction direction, Iterable<String> properties)
public Sort.Direction getDirection()
public String getProperty()
public boolean isAscending()
public Sort.Order with(Sort.Direction order)
Sort.Order
with the given Sort.Order
.
order
-
public Sort withProperties(String... properties)
Sort
instance for the given properties.
properties
-
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |