public class ForwardingBox<T,BoxType extends Box<T>> extends Object implements Box<T>
CasBox, use ForwardingBox.Cas.
- For wrapping an RxBox, use ForwardingBox.Rx.
- For wrapping a LockBox, use ForwardingBox.Lock.
- For wrapping an RxLockBox, use ForwardingBox.RxLock.
Especially useful for overridding set().| Modifier and Type | Class and Description |
|---|---|
static class |
ForwardingBox.Cas<T> |
static class |
ForwardingBox.Lock<T> |
static class |
ForwardingBox.Rx<T> |
static class |
ForwardingBox.RxLock<T> |
| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingBox(BoxType delegate) |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
void |
set(T value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait