public final class SerializableHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isSerializable(Object ob)
Checks if a given object is serializable.
|
static Object |
serializeUnserialize(Object ob)
Serializes and unserializes back an object to test whether it is correctly
rebuilt (to be used in unit tests as sanity checks).
|
public static boolean isSerializable(Object ob)
ob - the actual object we want to testpublic static Object serializeUnserialize(Object ob) throws Exception
ob - the actual object we want to testExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.