public static interface Instrument.Builder
Builder
class for the Instrument
.Modifier and Type | Method and Description |
---|---|
Instrument |
build()
Builds and returns a
Instrument with the desired options. |
Instrument.Builder |
setDescription(java.lang.String description)
Sets the description of the
Instrument . |
Instrument.Builder |
setUnit(java.lang.String unit)
Sets the unit of the
Instrument . |
Instrument.Builder setDescription(java.lang.String description)
Instrument
.
Default value is ""
.
description
- the description of the Instrument.Instrument.Builder setUnit(java.lang.String unit)
Instrument
.
Default value is "1"
.
unit
- the unit of the Instrument.Instrument build()
Instrument
with the desired options.Instrument
with the desired options.