|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.shoal.ha.cache.impl.util.Utility
public final class Utility
| Constructor Summary | |
|---|---|
Utility()
|
|
| Method Summary | |
|---|---|
static int |
bytesToInt(byte[] array,
int offset)
Unmarshal a byte array to an integer. |
static long |
bytesToLong(byte[] array,
int offset)
|
static byte[] |
intToBytes(int value)
Marshal an integer to a byte array. |
static void |
intToBytes(int value,
byte[] array,
int offset)
|
static byte[] |
longToBytes(long value)
Unmarshal a byte array to an long. |
static void |
longToBytes(long value,
byte[] array,
int offset)
Marshal an long to a byte array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utility()
| Method Detail |
|---|
public static final int bytesToInt(byte[] array,
int offset)
array - The array of bytes.offset - The offset from which to start unmarshalling.public static final byte[] intToBytes(int value)
public static final void intToBytes(int value,
byte[] array,
int offset)
public static final byte[] longToBytes(long value)
public static final long bytesToLong(byte[] array,
int offset)
public static final void longToBytes(long value,
byte[] array,
int offset)
array - The array of bytes.offset - The offset from which to start marshalling.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||