|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.util.ObjectUtils
public class ObjectUtils
Utility class for object creation and serialization. Starting with Java 1.5, some objects are re-used.
Method Summary | |
---|---|
static void |
arrayCopy(java.lang.Object[] source,
java.lang.Object[] target,
int size)
Copy the elements of the source array to the target array. |
static java.lang.Object |
deserialize(byte[] data)
De-serialize the byte array to an object. |
static int |
hashCode(java.lang.Object o)
Calculate the hash code of the given object. |
static byte[] |
serialize(java.lang.Object obj)
Serialize the object to a byte array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] serialize(java.lang.Object obj) throws java.sql.SQLException
obj
- the object to serialize
java.sql.SQLException
public static java.lang.Object deserialize(byte[] data) throws java.sql.SQLException
data
- the byte array
java.sql.SQLException
public static void arrayCopy(java.lang.Object[] source, java.lang.Object[] target, int size)
source
- the source arraytarget
- the target arraysize
- the number of elements to copypublic static int hashCode(java.lang.Object o)
o
- the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |