MetricType Class

public final class MetricType
extends ExpandableStringEnum<MetricType>

Metric to use when displaying costs.

Field Summary

Modifier and Type Field and Description
static final MetricType ACTUAL_COST

Static value ActualCost for MetricType.

static final MetricType AHUB

Static value AHUB for MetricType.

static final MetricType AMORTIZED_COST

Static value AmortizedCost for MetricType.

Constructor Summary

Constructor Description
MetricType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MetricType value.

Method Summary

Modifier and Type Method and Description
static MetricType fromString(String name)

Creates or finds a MetricType from its string representation.

static Collection<MetricType> values()

Gets known MetricType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ACTUAL_COST

public static final MetricType ACTUAL_COST

Static value ActualCost for MetricType.

AHUB

public static final MetricType AHUB

Static value AHUB for MetricType.

AMORTIZED_COST

public static final MetricType AMORTIZED_COST

Static value AmortizedCost for MetricType.

Constructor Details

MetricType

@Deprecated
public MetricType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MetricType value.

Method Details

fromString

public static MetricType fromString(String name)

Creates or finds a MetricType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding MetricType.

values

public static Collection values()

Gets known MetricType values.

Returns:

known MetricType values.

Applies to