Package org.eclipse.rdf4j.model.base
Class AbstractIRI
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractIRI
- All Implemented Interfaces:
Serializable,IRI,Resource,Value
- Direct Known Subclasses:
SimpleIRI
Base class for
IRI, offering common functionality.- Since:
- 3.5.0
- Author:
- Alessandro Bollini
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.model.IRI
getLocalName, getNamespace, isIRIMethods inherited from interface org.eclipse.rdf4j.model.Resource
isResource
-
Constructor Details
-
AbstractIRI
public AbstractIRI()
-
-
Method Details
-
stringValue
Description copied from interface:ValueReturns the String-value of a Value object. This returns either aLiteral's label, aIRI's URI or aBNode's ID.- Specified by:
stringValuein interfaceValue
-
equals
Description copied from interface:IRICompares this IRI to another object.- Specified by:
equalsin interfaceIRI- Overrides:
equalsin classObject- Parameters:
o- the object to compare this IRI to- Returns:
true, if the other object is an instance ofIRIand their string values are equal;false, otherwise
-
hashCode
public int hashCode()Description copied from interface:IRIComputes the hash code of this IRI.- Specified by:
hashCodein interfaceIRI- Overrides:
hashCodein classObject- Returns:
- a hash code for this IRI computed as
Value.stringValue().hashCode()
-
toString
-