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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<Namespace> Sorts namespaces first by prefix and then by Namespace.getName() () name};nullvalues 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};nullvalues are sorted before other values.
-
-
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
-