public class SerializationUtil extends Object
Constructor and Description |
---|
SerializationUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
cloneBySerialization(T obj) |
static Object |
deserialize(byte[] serialized)
BORROwED FROM APACHE STORM PROJECT
|
static byte[] |
serialize(Object obj)
BORROwED FROM APACHE STORM PROJECT
|
public static byte[] serialize(Object obj)
obj
- public static Object deserialize(byte[] serialized)
serialized
- public static <T> T cloneBySerialization(T obj)
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.