Interface OrderBy.Builder

  • Enclosing interface:
    OrderBy

    public static interface OrderBy.Builder
    Builds a OrderBy instance.
    • Method Detail

      • ascending

        OrderBy.Builder ascending​(Attribute<?>... attributes)
        Adds an 'ascending' order by for the given attributes
        Parameters:
        attributes - the attributes
        Returns:
        this builder instance
        Throws:
        IllegalArgumentException - in case attributes is empty
      • ascendingNullsFirst

        OrderBy.Builder ascendingNullsFirst​(Attribute<?>... attributes)
        Adds an 'ascending' order by for the given attributes with nulls appearing first
        Parameters:
        attributes - the attributes
        Returns:
        this builder instance
        Throws:
        IllegalArgumentException - in case attributes is empty
      • ascendingNullsLast

        OrderBy.Builder ascendingNullsLast​(Attribute<?>... attributes)
        Adds an 'ascending' order by for the given attributes with nulls appearing last
        Parameters:
        attributes - the attributes
        Returns:
        this builder instance
        Throws:
        IllegalArgumentException - in case attributes is empty
      • descending

        OrderBy.Builder descending​(Attribute<?>... attributes)
        Adds a 'descending' order by for the given attributes
        Parameters:
        attributes - the attributes
        Returns:
        this builder instance
        Throws:
        IllegalArgumentException - in case attributes is empty
      • descendingNullsFirst

        OrderBy.Builder descendingNullsFirst​(Attribute<?>... attributes)
        Adds a 'descending' order by for the given attributes with nulls appearing first
        Parameters:
        attributes - the attributes
        Returns:
        this builder instance
        Throws:
        IllegalArgumentException - in case attributes is empty
      • descendingNullsLast

        OrderBy.Builder descendingNullsLast​(Attribute<?>... attributes)
        Adds a 'descending' order by for the given attributes with nulls appearing last
        Parameters:
        attributes - the attributes
        Returns:
        this builder instance
        Throws:
        IllegalArgumentException - in case attributes is empty
      • build

        OrderBy build()
        Returns:
        a new OrderBy instance based on this builder