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) |
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.