Package org.eclipse.rdf4j.model
Interface Resource
-
- All Superinterfaces:
java.io.Serializable,Value
- All Known Implementing Classes:
AbstractBNode,AbstractBNode.GenericBNode,AbstractIRI,AbstractIRI.GenericIRI,AbstractTriple,AbstractTriple.GenericTriple,InternedIRI,MemBNode,MemIRI,MemResource,MemTriple,SimpleBNode,SimpleIRI,SimpleTriple
public interface Resource extends Value
The supertype of all RDF resources (IRIs and blank nodes).
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisResource()Check if the object is an instance of the given type.
-
-
-
Method Detail
-
isResource
default boolean isResource()
Description copied from interface:ValueCheck if the object is an instance of the given type. Typically 2x than using instanceof.For implementers: This default implementation is overridden in the repsective sub-interface.
- Specified by:
isResourcein interfaceValue- Returns:
- true if instance of
Resource
-
-