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:
compareToin interfaceComparable<Namespace>
-
equals
Description copied from interface:NamespaceCompares this namespace to another object. -
hashCode
public int hashCode()Description copied from interface:NamespaceComputes the hash code of this namespace.- Specified by:
hashCodein interfaceNamespace- Overrides:
hashCodein classObject- Returns:
- a hash code for this namespace computed as
Objects.hash(Namespace.getPrefix(),Namespace.getName())
-
toString
-