Class SortOption

  • All Implemented Interfaces:
    Serializable

    public class SortOption
    extends Object
    implements Serializable
    A sorting option for a particular field. This sort can be performed in either ascending or descending order.
    See Also:
    Serialized Form
    • Constructor Detail

      • SortOption

        public SortOption()
    • Method Detail

      • getLabel

        public String getLabel()
        The label of this search option
        Returns:
        label of this search option
      • getName

        public String getName()
        Name to use to identify the sort option. Typically, this should correspond to a FieldDefinition.getAbbreviation().
        Returns:
        Name to use to identify the sort option.
      • getField

        public FieldDefinition getField()
        The field to be sorted on
        Returns:
        field to be sorted on
      • getDisplayOrder

        public Integer getDisplayOrder()
        The display order of this sort option
        Returns:
        the order to display this sort option
      • setLabel

        public void setLabel​(String label)
        The label of this search option
        Parameters:
        label - label of this search option
      • setName

        public void setName​(String name)
        Name to use to identify the sort option. Typically, this should correspond to a FieldDefinition.getAbbreviation().
        Parameters:
        name - Name to use to identify the sort option.
      • setField

        public void setField​(FieldDefinition field)
        The field to be sorted on
        Parameters:
        field - field to be sorted on
      • setDisplayOrder

        public void setDisplayOrder​(Integer displayOrder)
        The display order of this sort option
        Parameters:
        displayOrder - the order to display this sort option
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object