| Modifier and Type | Class and Description |
|---|---|
static class |
MeasurementDescriptor.BasicUnit
Fundamental units of measurement.
|
static class |
MeasurementDescriptor.MeasurementUnit
MeasurementUnit lets you build compound units of the form
10^n * (A * B * ...) / (X * Y * ...),
where the elements in the numerator and denominator are all BasicUnits.
|
static class |
MeasurementDescriptor.Name
The name of a
MeasurementDescriptor. |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static MeasurementDescriptor |
create(MeasurementDescriptor.Name name,
String description,
MeasurementDescriptor.MeasurementUnit unit)
Constructs a new
MeasurementDescriptor. |
static MeasurementDescriptor |
create(String name,
String description,
MeasurementDescriptor.MeasurementUnit unit)
Constructs a new
MeasurementDescriptor. |
abstract String |
getDescription()
Detailed description of the measurement, used in documentation.
|
abstract MeasurementDescriptor.Name |
getMeasurementDescriptorName()
Name of measurement, e.g.
|
String |
getName()
Name of measurement, as a
String. |
abstract MeasurementDescriptor.MeasurementUnit |
getUnit()
The units in which
MeasurementDescriptor values are measured. |
public static final int MAX_LENGTH
public static MeasurementDescriptor create(String name, String description, MeasurementDescriptor.MeasurementUnit unit)
MeasurementDescriptor.public static MeasurementDescriptor create(MeasurementDescriptor.Name name, String description, MeasurementDescriptor.MeasurementUnit unit)
MeasurementDescriptor.public abstract MeasurementDescriptor.Name getMeasurementDescriptorName()
public final String getName()
String.public abstract String getDescription()
public abstract MeasurementDescriptor.MeasurementUnit getUnit()
MeasurementDescriptor values are measured.