Class Sort.BuilderBase.SortImpl

java.lang.Object
io.helidon.data.Sort.BuilderBase.SortImpl
All Implemented Interfaces:
Prototype.Api, Sort
Enclosing class:
Sort.BuilderBase<BUILDER extends Sort.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Sort>

protected static class Sort.BuilderBase.SortImpl extends Object implements Sort
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • SortImpl

      protected SortImpl(Sort.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • orderBy

      public List<Order> orderBy()
      Description copied from interface: Sort
      List of query ordering rules. Default value is an empty List to return unordered result.
      Specified by:
      orderBy in interface Sort
      Returns:
      List of order definitions
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isSorted

      default boolean isSorted()
      Whether any order definitions are set.
      Returns:
      value of true when at least one order definition is set or false otherwise