Module org.jpo

Class SortOption

java.lang.Object
org.jpo.datamodel.SortOption

public class SortOption extends Object
A class that holds a description of what will be sorted, and it's key
  • Constructor Details

    • SortOption

      public SortOption(String sortOptionText, Settings.FieldCodes sortCode)
      Constructs a SortOption with the description of the sort and the sort key
      Parameters:
      sortOptionText - the description of the sort
      sortCode - the code for the sort
  • Method Details

    • getDescription

      public String getDescription()
      Returns the sort option description
      Returns:
      the sort option description
    • getSortCode

      public Settings.FieldCodes getSortCode()
      Returns the sort option code
      Returns:
      the sort option code
    • toString

      public String toString()
      Returns the Description
      Overrides:
      toString in class Object
      Returns:
      the description