|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.plt.lambda.SimpleBox<T>
public class SimpleBox<T>
A box that freely supports reads and writes.
As a wrapper for arbitrary objects, instances of this class will serialize without error only if the wrapped object is serializable.
| Constructor Summary | |
|---|---|
SimpleBox()
Create a box initialized with null |
|
SimpleBox(T val)
Create a box initialized with val |
|
| Method Summary | ||
|---|---|---|
static
|
make()
Call the constructor (allows T to be inferred) |
|
static
|
make(T val)
Call the constructor (allows T to be inferred) |
|
void |
set(T val)
|
|
T |
value()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleBox(T val)
val
public SimpleBox()
null
| Method Detail |
|---|
public void set(T val)
set in interface Box<T>public T value()
value in interface Thunk<T>public static <T> Box<T> make(T val)
T to be inferred)
public static <T> Box<T> make()
T to be inferred)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||