public interface IRI extends BlankNodeOrIRI
RDF.createIRI(String)| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Check it this IRI is equal to another IRI.
|
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.
|
ntriplesStringString getIRIString()
boolean equals(Object other)
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.equals in interface RDFTermequals in class Objectother - Another objectObject.equals(Object)int hashCode()
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.
hashCode in interface RDFTermhashCode in class ObjectObject.hashCode()Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.