T
- public class Holder<T> extends Object
AtomicReference
, except that it is simpler
but not thread safe.Constructor and Description |
---|
Holder() |
Modifier and Type | Method and Description |
---|---|
static <T> Holder<T> |
create() |
static <T> Holder<T> |
create(T initial) |
T |
get() |
boolean |
hasValue() |
void |
put(T object) |
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.