Class Sort

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class Sort
    extends java.lang.Object
    implements java.io.Serializable
    Helper class for constructing SortOrders.
    Since:
    8.0
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Sort.SortBuilder
      SortBuilder is a helper class with fluent API for constructing sort order lists.
    • Constructor Summary

      Constructors 
      Constructor Description
      Sort()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Sort.SortBuilder asc​(java.lang.String by)
      Creates a new sort builder with given sorting using ascending sort direction.
      static Sort.SortBuilder desc​(java.lang.String by)
      Creates a new sort builder with given sorting using descending sort direction.
      • Methods inherited from class java.lang.Object

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

      • Sort

        public Sort()
    • Method Detail

      • asc

        public static Sort.SortBuilder asc​(java.lang.String by)
        Creates a new sort builder with given sorting using ascending sort direction.
        Parameters:
        by - the object to sort by
        Returns:
        the sort builder
      • desc

        public static Sort.SortBuilder desc​(java.lang.String by)
        Creates a new sort builder with given sorting using descending sort direction.
        Parameters:
        by - the object to sort by
        Returns:
        the sort builder