Class SortQuery

  • All Implemented Interfaces:
    Query

    public final class SortQuery
    extends Object
    implements Query
    Implementation of Query that specifies a sorting according to a specific field.
    • Constructor Detail

      • SortQuery

        public SortQuery​(String field,
                         Sort sort)
        Constructs a sorting query.
        Parameters:
        field - field's name to sort by
        sort - sorting order: ascending or descending.
      • SortQuery

        public SortQuery​(String field)
    • Method Detail

      • getEntries

        public List<org.apache.http.NameValuePair> getEntries()
        Description copied from interface: Query
        Returns a list of get query items.
        Specified by:
        getEntries in interface Query
        Returns:
        list od items.