|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidad.model.SortCriterion
public class SortCriterion
This class bundles together a property, a direction and strength by which a CollectionModel can be sorted.
CollectionModel.getSortCriteria(),
Serialized Form| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public boolean isAscending()
public String getProperty()
public SortStrength getSortStrength()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||