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 SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
AbstractId
 
- 
- 
Method Details- 
canonicalThe canonical ID. This is guaranteed to be non-null.
- 
equalsAbstractID objects are considered equal if, and only if, they are of the same type and have the same canonical identifier.
- 
hashCodepublic int hashCode()
- 
toStringReturns a string of the canonical ID. This is guaranteed to be non-null.
- 
compareTo- Specified by:
- compareToin interface- Comparable<T extends AbstractId<T>>
 
 
-