Freigeben über


UsageUnit Class

public final class UsageUnit
extends ExpandableStringEnum<UsageUnit>

An enum describing the unit of measurement.

Field Summary

Modifier and Type Field and Description
static final UsageUnit COUNT

Static value Count for UsageUnit.

Constructor Summary

Constructor Description
UsageUnit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UsageUnit value.

Method Summary

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

Creates or finds a UsageUnit from its string representation.

static Collection<UsageUnit> values()

Gets known UsageUnit values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

COUNT

public static final UsageUnit COUNT

Static value Count for UsageUnit.

Constructor Details

UsageUnit

@Deprecated
public UsageUnit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UsageUnit value.

Method Details

fromString

public static UsageUnit fromString(String name)

Creates or finds a UsageUnit from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding UsageUnit.

values

public static Collection values()

Gets known UsageUnit values.

Returns:

known UsageUnit values.

Applies to