public class DataHolder<T> extends Object implements Externalizable
| Constructor and Description |
|---|
DataHolder() |
| Modifier and Type | Method and Description |
|---|---|
void |
readExternal(ObjectInput in) |
String |
toString() |
T |
unwrap() |
static <T> DataHolder |
wrap(T object) |
void |
writeExternal(ObjectOutput out) |
public static <T> DataHolder wrap(T object)
public T unwrap()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2015. All rights reserved.