Class ListSorter
java.lang.Object
com.day.cq.analytics.testandtarget.ListSorter
A data-object that holds data related to list sorting - property and direction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSignals that the sorting should be done in acending modeSignals that sorting should be done in descending modeReturns the name of the property used for sortingbooleanReturns the type of sorting that is usedSets the property for this sorter
-
Constructor Details
-
ListSorter
public ListSorter()
-
-
Method Details
-
property
Sets the property for this sorter- Parameters:
p- aStringobject representing the name of the property- Returns:
- an instance of this object
-
ascending
Signals that the sorting should be done in acending mode- Returns:
- an instance of this object
-
descending
Signals that sorting should be done in descending mode- Returns:
- an instance of this object
-
isAscending
public boolean isAscending()Returns the type of sorting that is used- Returns:
trueif this sorter uses ascending sorting,falseotherwise
-
getProperty
Returns the name of the property used for sorting- Returns:
- a
Stringrepresenting the name of the property used for sorting.
-