Partilhar via


RegistryUsageUnit Class

public final class RegistryUsageUnit
extends ExpandableStringEnum<RegistryUsageUnit>

The unit of measurement.

Field Summary

Modifier and Type Field and Description
static final RegistryUsageUnit BYTES

Static value Bytes for RegistryUsageUnit.

static final RegistryUsageUnit COUNT

Static value Count for RegistryUsageUnit.

Constructor Summary

Constructor Description
RegistryUsageUnit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RegistryUsageUnit value.

Method Summary

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

Creates or finds a RegistryUsageUnit from its string representation.

static Collection<RegistryUsageUnit> values()

Gets known RegistryUsageUnit values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BYTES

public static final RegistryUsageUnit BYTES

Static value Bytes for RegistryUsageUnit.

COUNT

public static final RegistryUsageUnit COUNT

Static value Count for RegistryUsageUnit.

Constructor Details

RegistryUsageUnit

@Deprecated
public RegistryUsageUnit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RegistryUsageUnit value.

Method Details

fromString

public static RegistryUsageUnit fromString(String name)

Creates or finds a RegistryUsageUnit from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RegistryUsageUnit.

values

public static Collection values()

Gets known RegistryUsageUnit values.

Returns:

known RegistryUsageUnit values.

Applies to