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
public abstract class AbstractBNode extends Object implements BNode
Base class forBNode, offering common functionality.- Since:
- 3.5.0
- Author:
- Alessandro Bollini
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractBNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares this blank node to another object.inthashCode()Computes the hash code of this blank node.StringstringValue()Returns the String-value of a Value object.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.model.Resource
isResource
-
-
-
-
Method Detail
-
stringValue
public 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(Object o)
Description copied from interface:BNodeCompares this blank node to another object.
-
hashCode
public int hashCode()
Description copied from interface:BNodeComputes the hash code of this blank node.- Specified by:
hashCodein interfaceBNode- Overrides:
hashCodein classObject- Returns:
- a hash code for this blank node computed as
BNode.getID().hashCode()
-
-