Package org.eclipse.rdf4j.model.base
Class AbstractBNode
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractBNode
- All Implemented Interfaces:
Serializable
,BNode
,Resource
,Value
- Direct Known Subclasses:
SimpleBNode
Base class for
BNode
, offering common functionality.- Since:
- 3.5.0
- Author:
- Alessandro Bollini
- See Also:
-
Constructor Details
-
AbstractBNode
public AbstractBNode()
-
-
Method Details
-
stringValue
Description copied from interface:Value
Returns the String-value of a Value object. This returns either aLiteral
's label, aIRI
's URI or aBNode
's ID.- Specified by:
stringValue
in interfaceValue
-
equals
Description copied from interface:BNode
Compares this blank node to another object. -
hashCode
public int hashCode()Description copied from interface:BNode
Computes the hash code of this blank node.- Specified by:
hashCode
in interfaceBNode
- Overrides:
hashCode
in classObject
- Returns:
- a hash code for this blank node computed as
BNode.getID()
.hashCode()
-
toString
-