@Immutable public abstract static class Measure.MeasureLong extends Measure
Measure with Long typed values.Measure.MeasureDouble, Measure.MeasureLong| Modifier and Type | Method and Description |
|---|---|
static Measure.MeasureLong |
create(String name,
String description,
String unit)
Constructs a new
Measure.MeasureLong. |
abstract String |
getDescription()
Detailed description of the measure, used in documentation.
|
abstract String |
getName()
Name of measure, as a
String. |
abstract String |
getUnit()
The units in which
Measure values are measured. |
<T> T |
match(Function<? super Measure.MeasureDouble,T> p0,
Function<? super Measure.MeasureLong,T> p1,
Function<? super Measure,T> defaultFunction)
Applies the given match function to the underlying data type.
|
public static Measure.MeasureLong create(String name, String description, String unit)
Measure.MeasureLong.name - name of Measure. Suggested format: <web_host>/<path>.description - description of Measure.unit - unit of Measure.MeasureLong.public <T> T match(Function<? super Measure.MeasureDouble,T> p0, Function<? super Measure.MeasureLong,T> p1, Function<? super Measure,T> defaultFunction)
Measurepublic abstract String getName()
MeasureString. Should be a ASCII string with a length no greater than
255 characters.
Suggested format for name: <web_host>/<path>.
public abstract String getDescription()
MeasuregetDescription in class Measurepublic abstract String getUnit()
MeasureMeasure values are measured.
The suggested grammar for a unit is as follows:
For example, string “MBy{transmitted}/ms” stands for megabytes per milliseconds, and the annotation transmitted inside {} is just a comment of the unit.