Class ListSorter

java.lang.Object
com.day.cq.analytics.testandtarget.ListSorter

public class ListSorter extends Object
A data-object that holds data related to list sorting - property and direction
  • Constructor Details

    • ListSorter

      public ListSorter()
  • Method Details

    • property

      public ListSorter property(String p)
      Sets the property for this sorter
      Parameters:
      p - a String object representing the name of the property
      Returns:
      an instance of this object
    • ascending

      public ListSorter ascending()
      Signals that the sorting should be done in acending mode
      Returns:
      an instance of this object
    • descending

      public ListSorter 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:
      true if this sorter uses ascending sorting, false otherwise
    • getProperty

      public String getProperty()
      Returns the name of the property used for sorting
      Returns:
      a String representing the name of the property used for sorting.