T - the generic typepublic class LabeledItem<T extends Number> extends Object implements BaseItem
| Constructor and Description |
|---|
LabeledItem()
Instantiates a new labeled item.
|
LabeledItem(String label,
T value)
Instantiates a new labeled item.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel()
Gets the label.
|
T |
getValue()
Gets the value.
|
void |
setLabel(String label)
Sets the label.
|
void |
setValue(T value)
Sets the value.
|
public void setLabel(String label)
label - the label to setpublic String getLabel()
public void setValue(T value)
value - the value to setpublic T getValue()
Copyright © 2020. All rights reserved.