Class Sort.Builder

  • Enclosing class:
    Sort

    public static class Sort.Builder
    extends java.lang.Object
    Builder for constructing a sort
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
      Builder​(Sort sort)  
    • Method Summary

      Modifier and Type Method Description
      Sort build()  
      Sort.Builder direction​(Sort.SortDirection value)  
      Sort.Builder order​(java.lang.Integer value)  
      • Methods inherited from class java.lang.Object

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

      • Builder

        public Builder()
      • Builder

        public Builder​(Sort sort)
    • Method Detail

      • order

        public Sort.Builder order​(java.lang.Integer value)
        Parameters:
        value - Where multiple fields are sorted this value describes the sort order, with 0 being the first field to sort on
        Returns:
        The Sort.Builder, enabling method chaining
      • build

        public Sort build()