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:
ModelNamespace
,SimpleNamespace
,Vocabularies.VocabularyNamespace
Base class for
Namespace
, offering common functionality.- Since:
- 3.5.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator
<Namespace> Sorts namespaces first by prefix and then by Namespace.getName() () name};null
values are sorted before other values.private static final long
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
COMPARATOR
Sorts namespaces first by prefix and then by Namespace.getName() () name};null
values are sorted before other values.
-
-
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
-