Metadata builder.
All values are considered "not present" by default. Name must be set before build() is called.
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Metadata | |
| public MetadataBuilder | Returns: the builder instancethe name, empty string is considered as "not present" (null) description)Sets the description. |
| public MetadataBuilder | |
| public MetadataBuilder | Returns: the builder instancethe unit, unit)MetricUnits#NONE is considered as "not present" (null)Sets the unit. |
| description | back to summary |
|---|---|
| private String description | |
| name | back to summary |
|---|---|
| private String name | |
| unit | back to summary |
|---|---|
| private String unit | |
| MetadataBuilder | back to summary |
|---|---|
| pack-priv MetadataBuilder(Metadata metadata) | |
| MetadataBuilder | back to summary |
|---|---|
| public MetadataBuilder() | |
| build | back to summary |
|---|---|
public Metadata build()
| |
| withDescription | back to summary |
|---|---|
| public MetadataBuilder withDescription(String description) Sets the description.
| |
| withName | back to summary |
|---|---|
| public MetadataBuilder withName(String name) Sets the name. Does not accept null.
| |
| withUnit | back to summary |
|---|---|
| public MetadataBuilder withUnit(String unit) Sets the unit.
| |