Interface IRI

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)
      Check it this IRI is equal to another IRI.
      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 IRI.
    • Method Detail

      • getIRIString

        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.
        Returns:
        The IRI encoded as a native Unicode String.
      • equals

        boolean equals​(java.lang.Object other)
        Check it this IRI is equal to another IRI.
        IRI equality: Two IRIs are equal if and only if they are equivalent under Simple String Comparison according to section 5.1 of [RFC3987]. Further normalization MUST NOT be performed when comparing IRIs for equality.
        Two IRI instances are equal if and only if their getIRIString() are equal. Implementations MUST also override hashCode() so that two equal IRIs produce the same hash code.
        Specified by:
        equals in interface RDFTerm
        Overrides:
        equals in class java.lang.Object
        Parameters:
        other - Another object
        Returns:
        true if other is an IRI and is equal to this
        See Also:
        Object.equals(Object)
      • hashCode

        int hashCode()
        Calculate a hash code for this IRI.

        The returned hash code MUST be equal to the String.hashCode() of the getIRIString().

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

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