LengthUnit Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. contentunderstanding. models. LengthUnit
- com.
- com.
public final class LengthUnit
extends ExpandableStringEnum<LengthUnit>
Length unit used by the width, height, and source properties.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Length |
INCH
Inch unit. |
|
static final
Length |
PIXEL
Pixel unit. |
Constructor Summary
| Constructor | Description |
|---|---|
| LengthUnit() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Length |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Length |
fromString(String name)
Creates or finds a Length |
|
static
Collection<Length |
values()
Gets known Length |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
INCH
public static final LengthUnit INCH
Inch unit.
PIXEL
public static final LengthUnit PIXEL
Pixel unit.
Constructor Details
LengthUnit
@Deprecated
public LengthUnit()
Deprecated
Creates a new instance of LengthUnit value.
Method Details
fromString
public static LengthUnit fromString(String name)
Creates or finds a LengthUnit from its string representation.
Parameters:
Returns:
values
public static Collection<LengthUnit> values()
Gets known LengthUnit values.
Returns: