public abstract class AbstractId extends Object implements Comparable<AbstractId>, Serializable
Modifier | Constructor and Description |
---|---|
protected |
AbstractId(String canonical) |
Modifier and Type | Method and Description |
---|---|
String |
canonicalID()
The canonical ID
|
int |
compareTo(AbstractId id) |
boolean |
equals(Object obj)
AbstractID objects are considered equal if, and only if, they are of the same type and have the
same canonical identifier.
|
byte[] |
getUtf8()
Return a UTF_8 byte[] of the canonical ID.
|
int |
hashCode() |
boolean |
isEmpty() |
String |
toString()
Returns a string of the canonical ID
|
protected AbstractId(String canonical)
public final String canonicalID()
public boolean isEmpty()
public boolean equals(Object obj)
public String toString()
public final byte[] getUtf8()
public int compareTo(AbstractId id)
compareTo
in interface Comparable<AbstractId>
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.