Class Sort


  • public class Sort
    extends Object
    Represents a sort order
    • Constructor Detail

      • Sort

        public Sort​(String field,
                    @NonNull
                    Sort.Order order)
        Create a sort with the given name and order
        Parameters:
        field - The field to sort on
        order - The order to sort results
      • Sort

        public Sort​(String field,
                    GeolocationSort location)
        Create a sort with the given name and location
        Parameters:
        field - The field name to sort on
        location - The location to sort on;
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getName

        public String getName()
        The sort name
        Returns:
        the sort name
      • getDirection

        public SortOrder getDirection()
        The sort order
        Returns:
        the sort order