public enum TextUnit extends java.lang.Enum<TextUnit> implements INativeEnum
Enum Constant and Description |
---|
Character
Character.
|
Document
Document.
|
Format
Format.
|
Line
Line.
|
Page
Page.
|
Paragraph
Paragraph.
|
Word
Word.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<TextUnit> |
fromNativeValue(int nativeValue) |
java.lang.String |
getConstantName() |
int |
getNativeValue() |
static TextUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextUnit Character
public static final TextUnit Format
public static final TextUnit Word
public static final TextUnit Line
public static final TextUnit Paragraph
public static final TextUnit Page
public static final TextUnit Document
public static TextUnit[] values()
for (TextUnit c : TextUnit.values()) System.out.println(c);
public static TextUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getNativeValue()
getNativeValue
in interface INativeEnum
public java.lang.String getConstantName()
getConstantName
in interface INativeEnum
public static java.util.Optional<TextUnit> fromNativeValue(int nativeValue)