public class SortCriterion extends Object implements Serializable
Constructor and Description |
---|
SortCriterion(String property,
boolean isAscending)
Construct SortCriterion instance by the given property and sort direction,
using default Identical sort strength.
|
SortCriterion(String property,
boolean isAscending,
SortStrength sortStrength)
Construct SortCriterion instance by the given property, sort direction,
and sort strength.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getProperty()
Gets the property that is identified by this class.
|
SortStrength |
getSortStrength()
Gets the sort strenght of this sort criterion.
|
int |
hashCode() |
boolean |
isAscending()
Gets the direction in which the property of this class is sorted.
|
public SortCriterion(String property, boolean isAscending)
property
- sort property, name of the model that will be sorted on.isAscending
- whether to sort the property in ascending order or not.public SortCriterion(String property, boolean isAscending, SortStrength sortStrength)
property
- sort property, name of the model that will be sorted on.isAscending
- whether to sort the property in ascending order or not.sortStrength
- sort strength value when performing sort.public boolean isAscending()
public String getProperty()
public SortStrength getSortStrength()
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.