Class IRIImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      IRIImpl​(org.eclipse.rdf4j.model.IRI iri)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Check it this RDFTerm is equal to another RDFTerm.
      java.lang.String getIRIString()
      Return the IRI encoded as a native Unicode String.
      The returned string must not include URL-encoding to escape non-ASCII characters.
      int hashCode()
      Calculate a hash code for this RDFTerm.
      java.lang.String ntriplesString()
      Return the term serialised as specified by the RDF-1.1 N-Triples Canonical form.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.commons.rdf.rdf4j.RDF4JIRI

        asValue
    • Constructor Detail

      • IRIImpl

        IRIImpl​(org.eclipse.rdf4j.model.IRI iri)
    • Method Detail

      • getIRIString

        public java.lang.String getIRIString()
        Description copied from interface: IRI
        Return the IRI encoded as a native Unicode String.
        The returned string must not include URL-encoding to escape non-ASCII characters.
        Specified by:
        getIRIString in interface IRI
        Returns:
        The IRI encoded as a native Unicode String.
      • hashCode

        public int hashCode()
        Description copied from interface: RDFTerm
        Calculate a hash code for this RDFTerm.

        As an RDFTerm is immutable, this method will always return the same hashCode over the lifetime of this object.

        This method MUST be implemented in conjunction with RDFTerm.equals(Object) so that two equal RDFTerm produce the same hash code.

        Specified by:
        hashCode in interface IRI
        Specified by:
        hashCode in interface RDFTerm
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code value for this RDFTerm.
        See Also:
        IRI.hashCode(), Literal.hashCode(), BlankNode.hashCode()
      • ntriplesString

        public java.lang.String ntriplesString()
        Description copied from interface: RDFTerm
        Return the term serialised as specified by the RDF-1.1 N-Triples Canonical form.
        Specified by:
        ntriplesString in interface RDFTerm
        Returns:
        The term serialised as RDF-1.1 N-Triples.
        See Also:
        RDF-1.1 N-Triples Canonical form
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object