Package org.eclipse.rdf4j.sparqlbuilder.rdf

## Class RdfLiteral<T>

- java.lang.Object
- - org.eclipse.rdf4j.sparqlbuilder.rdf.RdfLiteral<T>

- Type Parameters:
    `T` - the datatype of the literal
  All Implemented Interfaces:
    `Operand`, `QueryElement`, `RdfObject`, `RdfValue`
  Direct Known Subclasses:
    `RdfLiteral.BooleanLiteral`, `RdfLiteral.NumericLiteral`, `RdfLiteral.StringLiteral`

      public abstract class RdfLiteral<T>
      extends Object
      implements RdfValue

  Denotes an RDF literal
  See Also:
    RDF Literals, RDF Literal Syntax

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `RdfLiteral.BooleanLiteral` | Represents an RDF boolean literal
    `static class` | `RdfLiteral.NumericLiteral` | Represents an RDF number literal
    `static class` | `RdfLiteral.StringLiteral` | Represents an RDF string literal

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected T` | `value` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(Object obj)` |
    `String` | `getQueryString()` |
    `int` | `hashCode()` |

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

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

- - ### Field Detail

    - #### value

          protected T value

  - ### Method Detail

    - #### getQueryString

          public String getQueryString()

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

    - #### equals

          public boolean equals​(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`