org.eclipse.rdf4j.sparqlbuilder.core

## Class OrderCondition

- java.lang.Object
- - org.eclipse.rdf4j.sparqlbuilder.core.OrderCondition

- All Implemented Interfaces:
    Orderable, QueryElement

      public class OrderCondition
      extends Object
      implements Orderable

  An ascending or descending order condition
  See Also:
    SPARQL Order By Clause

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `OrderCondition` | `asc()` Set this order condition to be ascending
    `OrderCondition` | `desc()` Set this order condition to be descending
    `String` | `getQueryString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### asc

          public OrderCondition asc()

      Set this order condition to be ascending
      Specified by:
        `asc` in interface `Orderable`
      Returns:
        this

    - #### desc

          public OrderCondition desc()

      Set this order condition to be descending
      Specified by:
        `desc` in interface `Orderable`
      Returns:
        this

    - #### getQueryString

          public String getQueryString()

      Specified by:
        `getQueryString` in interface `QueryElement`
      Returns:
        the String representing the SPARQL syntax of this element

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.