Class SortOrder<T>

  • Type Parameters:
    T - the type of the sorting information, usually a String (field id) or a Comparator.
    All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    GridSortOrder, QuerySortOrder

    public class SortOrder<T>
    extends java.lang.Object
    implements java.io.Serializable
    Sorting information for one field.
    Since:
    8.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SortOrder​(T sorted, com.vaadin.shared.data.sort.SortDirection direction)
      Constructs a field sorting information.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.vaadin.shared.data.sort.SortDirection getDirection()
      Sorting direction.
      T getSorted()
      Sorting information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SortOrder

        public SortOrder​(T sorted,
                         com.vaadin.shared.data.sort.SortDirection direction)
        Constructs a field sorting information.
        Parameters:
        sorted - sorting information, usually field id or Comparator
        direction - sorting direction
    • Method Detail

      • getSorted

        public T getSorted()
        Sorting information.
        Returns:
        sorting entity, usually field id or Comparator
      • getDirection

        public com.vaadin.shared.data.sort.SortDirection getDirection()
        Sorting direction.
        Returns:
        sorting direction