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:
  • Field Details

    • value

      protected T value
  • Method Details

    • 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