Package org.eclipse.rdf4j.model.base
Class AbstractIRI
- java.lang.Object
-
- org.eclipse.rdf4j.model.base.AbstractIRI
-
- Direct Known Subclasses:
AbstractIRI.GenericIRI,SimpleIRI
public abstract class AbstractIRI extends java.lang.Object implements IRI
Base class forIRI, offering common functionality.- Since:
- 3.5.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classAbstractIRI.GenericIRI
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description AbstractIRI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Compares this IRI to another object.inthashCode()Computes the hash code of this IRI.java.lang.StringstringValue()Returns the String-value of a Value object.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.model.IRI
getLocalName, getNamespace, isIRI
-
Methods inherited from interface org.eclipse.rdf4j.model.Resource
isResource
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
stringValue
public java.lang.String 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
public boolean equals(java.lang.Object o)
Description copied from interface:IRICompares this IRI to another object.- Specified by:
equalsin interfaceIRI- Overrides:
equalsin classjava.lang.Object- 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 classjava.lang.Object- Returns:
- a hash code for this IRI computed as
Value.stringValue().hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-