|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.util.Holder<T>
T - public class Holder<T>
An object that holds some type of other object. This is useful for communicating information from an inner class
(used as a closure) to the containing method. This is similar to AtomicReference, except that it is simpler
but not thread safe.
| Constructor Summary | |
|---|---|
Holder()
|
|
| Method Summary | ||
|---|---|---|
static
|
create()
|
|
T |
get()
|
|
boolean |
hasValue()
|
|
void |
put(T object)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Holder()
| Method Detail |
|---|
public void put(T object)
public T get()
public boolean hasValue()
public static <T> Holder<T> create()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||