public static enum PaperSize.Unit extends java.lang.Enum<PaperSize.Unit>
Enum Constant and Description |
---|
INCHES |
MICRONS |
MILLIMETERS |
Modifier and Type | Method and Description |
---|---|
static PaperSize.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PaperSize.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaperSize.Unit MILLIMETERS
public static final PaperSize.Unit INCHES
public static final PaperSize.Unit MICRONS
public static PaperSize.Unit[] values()
for (PaperSize.Unit c : PaperSize.Unit.values()) System.out.println(c);
public static PaperSize.Unit 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 null