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
public abstract class AbstractNamespace extends Object implements Namespace
Base class forNamespace, offering common functionality.- Since:
- 3.5.0
- Author:
- Alessandro Bollini
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractNamespace()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Namespace o)booleanequals(Object object)Compares this namespace to another object.inthashCode()Computes the hash code of this namespace.StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(Namespace o)
- Specified by:
compareToin interfaceComparable<Namespace>
-
equals
public boolean equals(Object object)
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())
-
-