public static enum LengthValue.Unit extends Enum<LengthValue.Unit> implements INumberEnum<Byte>
Enum Constant and Description |
---|
CHARS |
EMS |
EXS |
PERCENT |
PIXELS |
TWIPS |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
long |
getLongValue() |
Byte |
getValue() |
static LengthValue.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LengthValue.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LengthValue.Unit UNKNOWN
public static final LengthValue.Unit TWIPS
public static final LengthValue.Unit PIXELS
public static final LengthValue.Unit PERCENT
public static final LengthValue.Unit EMS
public static final LengthValue.Unit EXS
public static final LengthValue.Unit CHARS
public static LengthValue.Unit[] values()
for (LengthValue.Unit c : LengthValue.Unit.values()) System.out.println(c);
public static LengthValue.Unit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic long getLongValue()
getLongValue
in interface INumberEnum<Byte>
long
public Byte getValue()
getValue
in interface INumberEnum<Byte>
Copyright © 2019–2021 HCL. All rights reserved.