public abstract class BaseId extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
BaseId(byte[] id)
Create a BaseId instance according to the input byte array.
|
| Modifier and Type | Method and Description |
|---|---|
protected static byte[] |
byteBuffer2Bytes(ByteBuffer bb) |
boolean |
equals(Object obj) |
byte[] |
getBytes()
Get the byte data of this id.
|
int |
hashCode() |
protected static byte[] |
hexString2Bytes(String hex) |
boolean |
isNil()
Returns true if this id is nil.
|
abstract int |
size()
Derived class should implement this function.
|
ByteBuffer |
toByteBuffer()
Convert the byte data to a ByteBuffer.
|
String |
toString() |
protected BaseId(byte[] id)
public byte[] getBytes()
public ByteBuffer toByteBuffer()
public boolean isNil()
public abstract int size()
protected static byte[] hexString2Bytes(String hex)
protected static byte[] byteBuffer2Bytes(ByteBuffer bb)
Copyright © 2021. All rights reserved.