public static enum TermNumeric.Unit extends Enum<TermNumeric.Unit>
| Enum Constant and Description |
|---|
cm |
deg |
em |
ex |
grad |
hz |
in |
khz |
mm |
ms |
none |
pc |
pt |
px |
rad |
s |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAngle() |
boolean |
isFrequency() |
boolean |
isLength() |
boolean |
isTime() |
String |
value() |
static TermNumeric.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TermNumeric.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TermNumeric.Unit none
public static final TermNumeric.Unit px
public static final TermNumeric.Unit em
public static final TermNumeric.Unit ex
public static final TermNumeric.Unit cm
public static final TermNumeric.Unit mm
public static final TermNumeric.Unit pt
public static final TermNumeric.Unit in
public static final TermNumeric.Unit pc
public static final TermNumeric.Unit deg
public static final TermNumeric.Unit rad
public static final TermNumeric.Unit grad
public static final TermNumeric.Unit ms
public static final TermNumeric.Unit s
public static final TermNumeric.Unit hz
public static final TermNumeric.Unit khz
public static TermNumeric.Unit[] values()
for (TermNumeric.Unit c : TermNumeric.Unit.values()) System.out.println(c);
public static TermNumeric.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 String value()
public boolean isAngle()
public boolean isLength()
public boolean isTime()
public boolean isFrequency()
Copyright © 2014. All rights reserved.