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 IOException, ClassNotFoundException
ob
- the actual object we want to testIOException
ClassNotFoundException
Copyright © 2015 Nuxeo SA. All rights reserved.