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 int
compareTo(Namespace o)
boolean
equals(Object object)
Compares this namespace to another object.int
hashCode()
Computes the hash code of this namespace.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(Namespace o)
- Specified by:
compareTo
in interfaceComparable<Namespace>
-
equals
public boolean equals(Object object)
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()
)
-
-