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 Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2015. All rights reserved.