Interface SortOrderStep<S>

  • Type Parameters:
    S - The "self" type (the actual exposed type of this step)
    All Known Subinterfaces:
    DistanceSortOptionsStep<S,​PDF>, FieldSortOptionsStep<S,​PDF>, ScoreSortOptionsStep<S>

    public interface SortOrderStep<S>
    The step in a sort definition where the order can be set.
    Author:
    Emmanuel Bernard emmanuel@hibernate.org
    • Method Detail

      • asc

        default S asc()
        Sort in ascending order.
        Returns:
        this, for method chaining.
      • desc

        default S desc()
        Sort in descending order.
        Returns:
        this, for method chaining.
      • order

        S order​(SortOrder order)
        Sort in the given order.
        Parameters:
        order - The order.
        Returns:
        this, for method chaining.