public final class TableId extends U8Id implements Comparable<TableId>
MAX.
All constructors for this class are private.
Creating instances of TableId is done via the static
methods on the class.
Instances of this class are immutable, making them inherently threadsafe.
This class overrides UnsignedIntBasedId.equals(java.lang.Object) and UnsignedIntBasedId.hashCode() so that
instances play nicely with the Collection classes.
This class implements the Comparable interface to ensure that
a sorted list of table IDs is presented in an intuitive order.
| Modifier and Type | Field and Description |
|---|---|
static TableId |
ALL
Denotes all tables.
|
static TableId |
MAX
Denotes the last usable table id number.
|
idE_BAD, E_NULL_BYTES, E_NULL_STR, E_OOR, MIN_VALUE| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TableId o)
Implements the Comparable interface, to return table ids in
natural order.
|
String |
toString()
Returns a string representation of this id.
|
static TableId |
valueOf(byte b)
Returns an object that represents the table identifier
defined by the specified byte.
|
static TableId |
valueOf(int tid)
Returns an object that represents the table id
defined by the specified int.
|
static TableId |
valueOf(String tidStr)
Returns an object that represents the table id
defined by the specified string.
|
rangeCheck, toByteequals, hashCode, toIntparseIntStr, parseLongStrgetRefQ, keyFromBytespublic static final TableId MAX
TableId.MAX.)public static final TableId ALL
public String toString()
UnsignedIntBasedIdtoString in class UnsignedIntBasedIdpublic int compareTo(TableId o)
compareTo in interface Comparable<TableId>o - the other table idComparable.compareTo(T)public static TableId valueOf(int tid)
tid - the table idIllegalArgumentException - if the table id is invalidpublic static TableId valueOf(String tidStr)
tidStr - the table id as a stringIllegalArgumentException - if the string is invalidNullPointerException - if the string is nullpublic static TableId valueOf(byte b)
b - the encoded idCopyright © 2014. All Rights Reserved.