public static final class ConstantSize.Unit
extends java.lang.Object
implements java.io.Serializable
ConstantSize.| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
requiresIntegers |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
abbreviation()
Returns the first character of this Unit's name.
|
java.lang.String |
toString() |
(package private) static ConstantSize.Unit |
valueOf(java.lang.String str,
boolean horizontal)
Returns an instance of
Unit that corresponds to the
specified string. |
static ConstantSize.Unit valueOf(java.lang.String str, boolean horizontal)
Unit that corresponds to the
specified string.str - the encoded unithorizontal - true for a horizontal unit, false for verticaljava.lang.IllegalArgumentException - if no Unit exists for the stringpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String abbreviation()