E
- Element typepublic class Holder<E>
extends java.lang.Object
A holder is useful for implementing OUT or IN-OUT parameters.
It is possible to sub-class to receive events on get or set.
Modifier | Constructor and Description |
---|---|
protected |
Holder(E e)
Creates a Holder containing a given value.
|
Modifier and Type | Method and Description |
---|---|
E |
get()
Gets the value.
|
static <E> Holder<E> |
of(E e)
Creates a holder containing a given value.
|
void |
set(E e)
Sets the value.
|
private E e
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.