Class LengthUnit
java.lang.Object
com.azure.core.util.ExpandableStringEnum<LengthUnit>
com.azure.ai.documentintelligence.models.LengthUnit
The unit used by the width, height, and polygon properties. For images, the unit is "pixel". For PDF, the unit is
"inch".
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LengthUnit
Length unit for PDF files.static final LengthUnit
Length unit for image files. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LengthUnit
fromString
(String name) Creates or finds a LengthUnit from its string representation.static Collection<LengthUnit>
values()
Gets known LengthUnit values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
PIXEL
Length unit for image files. -
INCH
Length unit for PDF files.
-
-
Constructor Details
-
LengthUnit
Deprecated.Use thefromString(String)
factory method.Creates a new instance of LengthUnit value.
-
-
Method Details
-
fromString
Creates or finds a LengthUnit from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding LengthUnit.
-
values
Gets known LengthUnit values.- Returns:
- known LengthUnit values.
-
fromString(String)
factory method.