LengthHeightUnit Class

public final class LengthHeightUnit
extends ExpandableStringEnum<LengthHeightUnit>

Unit for the dimensions of length, height and width.

Field Summary

Modifier and Type Field and Description
static final LengthHeightUnit CM

Static value CM for LengthHeightUnit.

static final LengthHeightUnit IN

Static value IN for LengthHeightUnit.

Constructor Summary

Constructor Description
LengthHeightUnit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LengthHeightUnit value.

Method Summary

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

Creates or finds a LengthHeightUnit from its string representation.

static Collection<LengthHeightUnit> values()

Gets known LengthHeightUnit values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CM

public static final LengthHeightUnit CM

Static value CM for LengthHeightUnit.

IN

public static final LengthHeightUnit IN

Static value IN for LengthHeightUnit.

Constructor Details

LengthHeightUnit

@Deprecated
public LengthHeightUnit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LengthHeightUnit value.

Method Details

fromString

public static LengthHeightUnit fromString(String name)

Creates or finds a LengthHeightUnit from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LengthHeightUnit.

values

public static Collection<LengthHeightUnit> values()

Gets known LengthHeightUnit values.

Returns:

known LengthHeightUnit values.

Applies to