public class ValueHolder
extends java.lang.Object
Constructor and Description |
---|
ValueHolder(java.lang.Object content)
Constructor with the default toString().
|
ValueHolder(java.lang.Object content,
java.lang.String label)
Constructor with custom label.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContent()
Get the contained Object.
|
java.lang.String |
toString()
Returns the specified label.
|
public ValueHolder(java.lang.Object content)
content
- contained object, also used for the toString() method.public ValueHolder(java.lang.Object content, java.lang.String label)
content
- contained object.label
- label to show the Object under.