public class Sort
extends java.lang.Object
| Constructor and Description |
|---|
Sort()
Instantiates a new sort.
|
Sort(java.lang.String propertyName)
Instantiates a new sort.
|
Sort(java.lang.String propertyName,
SortDirection direction)
Instantiates a new sort.
|
| Modifier and Type | Method and Description |
|---|---|
SortDirection |
getDirection()
Gets the direction.
|
java.lang.String |
getPropertyName()
Gets the property name.
|
void |
setDirection(SortDirection direction)
Sets the direction.
|
void |
setPropertyName(java.lang.String propertyName)
Sets the property name.
|
java.lang.String |
toString() |
public Sort()
public Sort(java.lang.String propertyName)
propertyName - the property namepublic Sort(java.lang.String propertyName,
SortDirection direction)
propertyName - the property namedirection - the directionpublic SortDirection getDirection()
public java.lang.String getPropertyName()
public void setDirection(SortDirection direction)
direction - the new directionpublic void setPropertyName(java.lang.String propertyName)
propertyName - the new property namepublic java.lang.String toString()
toString in class java.lang.Object