Package org.eclipse.rdf4j.model.base
Class AbstractNamespace
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractNamespace
- All Implemented Interfaces:
Serializable
,Comparable<Namespace>
,Namespace
- Direct Known Subclasses:
SimpleNamespace
Base class for
Namespace
, offering common functionality.- Since:
- 3.5.0
- Author:
- Alessandro Bollini
- See Also:
-
Constructor Details
-
AbstractNamespace
public AbstractNamespace()
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Namespace>
-
equals
Description copied from interface:Namespace
Compares this namespace to another object. -
hashCode
public int hashCode()Description copied from interface:Namespace
Computes the hash code of this namespace.- Specified by:
hashCode
in interfaceNamespace
- Overrides:
hashCode
in classObject
- Returns:
- a hash code for this namespace computed as
Objects.hash
(Namespace.getPrefix()
,Namespace.getName()
)
-
toString
-