public abstract class TypedMetricResult extends MetricResult
Base class for metric results that expose their values via getters.
Constructor and Description |
---|
TypedMetricResult() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
getColumns(java.lang.Class<? extends TypedMetricResult> type)
Get the columns for a typed metric result class.
|
static java.util.List<java.lang.String> |
getColumns(java.lang.Class<? extends TypedMetricResult> type,
java.lang.String suffix)
Get the columns for a typed metric result class.
|
java.util.Map<java.lang.String,java.lang.Object> |
getValues()
Get the column values for this metric result.
|
empty, fromMap, fromNullable, singleton, withPrefix, withSuffix
public static java.util.List<java.lang.String> getColumns(java.lang.Class<? extends TypedMetricResult> type)
Get the columns for a typed metric result class.
type
- The result class.type
.@Nonnull public static java.util.List<java.lang.String> getColumns(@Nullable java.lang.Class<? extends TypedMetricResult> type, @Nullable java.lang.String suffix)
Get the columns for a typed metric result class.
type
- The result class. If null
, an empty list of columns will be returned.suffix
- A suffix for column labels; if non-null
, will be appended to each column label separated with a period.type
.public java.util.Map<java.lang.String,java.lang.Object> getValues()
MetricResult
Get the column values for this metric result.
getValues
in class MetricResult