T - the Java type of the object held by this containerpublic class Container<T>
extends java.lang.Object
implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
Container() |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
void |
readFields(java.io.DataInput dataInput) |
void |
set(T newValue) |
void |
write(java.io.DataOutput dataOutput) |
public T get()
public void set(T newValue)
public void write(java.io.DataOutput dataOutput)
write in interface org.apache.hadoop.io.Writablepublic void readFields(java.io.DataInput dataInput)
readFields in interface org.apache.hadoop.io.Writable