public class Holder<T> extends Object
Constructor and Description |
---|
Holder()
Constructs a holder with a
null value. |
Holder(T value)
Constructs a holder with the given value.
|
Modifier and Type | Method and Description |
---|---|
T |
getValue()
Returns the value.
|
void |
setValue(T value)
Sets a new value of the holder.
|
String |
toString() |
public Holder()
null
value.public Holder(T value)
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.