public final class MeasurementMap extends Object implements Iterable<MeasurementValue>
MeasurementDescriptor's to measured values.| Modifier and Type | Class and Description |
|---|---|
static class |
MeasurementMap.Builder
Builder for the
MeasurementMap class. |
| Modifier and Type | Method and Description |
|---|---|
static MeasurementMap.Builder |
builder()
Returns a
MeasurementMap.Builder for the MeasurementMap class. |
Iterator<MeasurementValue> |
iterator()
Returns an
Iterator over the measurement/value mappings in this MeasurementMap. |
static MeasurementMap |
of(MeasurementDescriptor measurement,
double value)
Constructs a
MeasurementMap from the given MeasurementDescriptor
and associated value. |
static MeasurementMap |
of(MeasurementDescriptor measurement1,
double value1,
MeasurementDescriptor measurement2,
double value2)
Constructs a
MeasurementMap from the given MeasurementDescriptor's
and associated values. |
static MeasurementMap |
of(MeasurementDescriptor measurement1,
double value1,
MeasurementDescriptor measurement2,
double value2,
MeasurementDescriptor measurement3,
double value3)
Constructs a
MeasurementMap from the given MeasurementDescriptor's
and associated values. |
int |
size()
Returns the number of measurements in this
MeasurementMap. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static MeasurementMap of(MeasurementDescriptor measurement, double value)
MeasurementMap from the given MeasurementDescriptor
and associated value.public static MeasurementMap of(MeasurementDescriptor measurement1, double value1, MeasurementDescriptor measurement2, double value2)
MeasurementMap from the given MeasurementDescriptor's
and associated values.public static MeasurementMap of(MeasurementDescriptor measurement1, double value1, MeasurementDescriptor measurement2, double value2, MeasurementDescriptor measurement3, double value3)
MeasurementMap from the given MeasurementDescriptor's
and associated values.public static MeasurementMap.Builder builder()
MeasurementMap.Builder for the MeasurementMap class.public int size()
MeasurementMap.public Iterator<MeasurementValue> iterator()
Iterator over the measurement/value mappings in this MeasurementMap.
The Iterator does not support Iterator.remove().iterator in interface Iterable<MeasurementValue>