Package org.apache.accumulo.core.data
Class AbstractId<T extends AbstractId<T>>
java.lang.Object
org.apache.accumulo.core.data.AbstractId<T>
- All Implemented Interfaces:
Serializable
,Comparable<T>
- Direct Known Subclasses:
CompactionExecutorId
,CompactionServiceId
,InstanceId
,NamespaceId
,TableId
public abstract class AbstractId<T extends AbstractId<T>>
extends Object
implements Comparable<T>, Serializable
An abstract identifier class for comparing equality of identifiers of the same type.
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AbstractId
-
-
Method Details
-
canonical
The canonical ID. This is guaranteed to be non-null. -
equals
AbstractID objects are considered equal if, and only if, they are of the same type and have the same canonical identifier. -
hashCode
public int hashCode() -
toString
Returns a string of the canonical ID. This is guaranteed to be non-null. -
compareTo
- Specified by:
compareTo
in interfaceComparable<T extends AbstractId<T>>
-