Class LiveDataQuery.SortEntry

  • Enclosing class:
    LiveDataQuery

    public static class LiveDataQuery.SortEntry
    extends Object
    A sort entry.
    • Constructor Detail

      • SortEntry

        public SortEntry()
        Default constructor.
      • SortEntry

        public SortEntry​(String property)
        Creates a new sort entry for the specified property.
        Parameters:
        property - the property to sort on
      • SortEntry

        public SortEntry​(String property,
                         boolean descending)
        Creates a new sort entry for the specified property and sort order.
        Parameters:
        property - the property to sort on
        descending - the sort direction
    • Method Detail

      • getProperty

        public String getProperty()
        Returns:
        the property to sort on
      • setProperty

        public void setProperty​(String property)
        Sets the property to sort on.
        Parameters:
        property - the property name
      • isDescending

        public boolean isDescending()
        Returns:
        the sort direction
      • setDescending

        public void setDescending​(boolean descending)
        Sets the sort direction.
        Parameters:
        descending - the new sort direction