Interface RangeSpec

All Superinterfaces:
org.apache.jena.graph.FrontsNode, org.apache.jena.rdf.model.RDFNode, org.apache.jena.rdf.model.Resource
All Known Implementing Classes:
RangeSpecImpl

public interface RangeSpec extends org.apache.jena.rdf.model.Resource
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends Comparable<T>>
    com.google.common.collect.Range<T>
    createRange(T min, boolean isMinInclusive, T max, boolean isMaxInclusive)
    Utility function for creating ranges with null values.
    static <T extends Comparable<T>>
    com.google.common.collect.Range<T>
    createRange(T min, com.google.common.collect.BoundType minBoundType, T max, com.google.common.collect.BoundType maxBoundType)
    Utility function for creating ranges with null values.
    org.apache.jena.rdf.model.RDFNode
     
    default <T> T
    getMax(Class<T> clazz)
     
    org.apache.jena.rdf.model.RDFNode
     
    default <T> T
    getMin(Class<T> clazz)
     
    boolean
     
    boolean
     
    void
    setMax(org.apache.jena.rdf.model.RDFNode max)
     
    void
    setMaxInclusive(boolean onOrOff)
     
    void
    setMin(org.apache.jena.rdf.model.RDFNode min)
     
    void
    setMinInclusive(boolean onOrOff)
     
    default <T extends Comparable<T>>
    com.google.common.collect.Range<T>
    toRange(Class<T> clazz)
     

    Methods inherited from interface org.apache.jena.graph.FrontsNode

    asNode

    Methods inherited from interface org.apache.jena.rdf.model.RDFNode

    as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWith

    Methods inherited from interface org.apache.jena.rdf.model.Resource

    abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
  • Method Details

    • getMin

      org.apache.jena.rdf.model.RDFNode getMin()
    • setMin

      void setMin(org.apache.jena.rdf.model.RDFNode min)
    • isMinInclusive

      boolean isMinInclusive()
    • setMinInclusive

      void setMinInclusive(boolean onOrOff)
    • getMax

      org.apache.jena.rdf.model.RDFNode getMax()
    • setMax

      void setMax(org.apache.jena.rdf.model.RDFNode max)
    • isMaxInclusive

      boolean isMaxInclusive()
    • setMaxInclusive

      void setMaxInclusive(boolean onOrOff)
    • getMin

      default <T> T getMin(Class<T> clazz)
    • getMax

      default <T> T getMax(Class<T> clazz)
    • toRange

      default <T extends Comparable<T>> com.google.common.collect.Range<T> toRange(Class<T> clazz)
    • createRange

      static <T extends Comparable<T>> com.google.common.collect.Range<T> createRange(T min, boolean isMinInclusive, T max, boolean isMaxInclusive)
      Utility function for creating ranges with null values. Null is interpreted as the absence of a boundary, hence createRange(null, null) yields Range.all(). If min or max is null, the corresponding value for inclusiveness is ignored.
      Parameters:
      min -
      isMinInclusive -
      max -
      isMaxInclusive -
      Returns:
    • createRange

      static <T extends Comparable<T>> com.google.common.collect.Range<T> createRange(T min, com.google.common.collect.BoundType minBoundType, T max, com.google.common.collect.BoundType maxBoundType)
      Utility function for creating ranges with null values. Null is interpreted as the absence of a boundary, hence createRange(null, null) yields Range.all(). If min or max is null, the corresponding value for inclusiveness is ignored.
      Parameters:
      min -
      minBoundType -
      max -
      maxBoundType -
      Returns: