public class Entry extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<? extends String> |
description |
protected String |
name |
protected T |
value |
| Constructor and Description |
|---|
Entry(List<? extends String> description,
String name,
String value) |
Entry(List<? extends String> description,
String raw,
String name,
String value) |
Entry(List<? extends String> description,
String raw,
String name,
Unit value) |
Entry(List<? extends String> description,
String name,
Unit value) |
| Modifier and Type | Method and Description |
|---|---|
List<? extends String> |
getDescription() |
String |
getName()
The name of element
|
String |
getRaw()
Get raw representation of entry
|
String |
getRecord()
Get entry as 'key: value' text.
|
String |
getUnitValue()
Get unit's value using
Unit.getValue() method. |
T |
getValue() |
void |
setValue(T value) |
String |
toString() |
protected final String name
protected T value
public String getRecord()
public String getRaw()
public String getUnitValue()
Unit.getValue() method.public void setValue(T value)
public List<? extends String> getDescription()
getDescription in interface Element<T>public String getName()
NamedElementgetName in interface NamedElement<T>Copyright © 2021. All rights reserved.