Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.internal.util
Class Holder<T>

    java.lang.Object
      org.apache.tapestry5.internal.util.Holder<T>

Type Parameters:
  `T` -

    public class Holder<T>

extends java.lang.Object

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
`<T> Holder<T>`
` | `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

### Holder

    public Holder()

Method Detail

### put

    public void put(T object)

### get

    public T get()

### hasValue

    public boolean hasValue()

### create

    public static <T> Holder<T> create()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.