|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.text.TextUtils.UnitScale
public static class TextUtils.UnitScale
Unit is a typesafe enum class that describes a unit scale (metric factors of 10).
Field Summary | |
---|---|
static TextUtils.UnitScale |
ATTO
Describes atto scale (10 to the -18th). |
static TextUtils.UnitScale |
FEMTO
Describes femto scale (10 to the -15th). |
static TextUtils.UnitScale |
GIGA
Describes giga scale (1 billion). |
static TextUtils.UnitScale |
KILO
Describes kilo scale (1 thousand). |
static TextUtils.UnitScale |
MEGA
Describes mega scale (1 million). |
static TextUtils.UnitScale |
MICRO
Describes micro scale (1 millionth). |
static TextUtils.UnitScale |
MILLI
Describes milli scale (1 thousandth). |
static TextUtils.UnitScale |
NANO
Describes nano scale (1 billionth). |
static TextUtils.UnitScale |
NONE
Describes unit scale (1). |
static TextUtils.UnitScale |
PICO
Describes pico scale (10 to the -12th). |
static TextUtils.UnitScale |
YOCTO
Describes yocto scale (10 to the -24th). |
static TextUtils.UnitScale |
ZEPTO
Describes zepto scale (10 to the -21st). |
Method Summary | |
---|---|
static TextUtils.UnitScale |
findFromIndex(int index)
Method to convert the index value to a UnitScale. |
int |
getIndex()
Method to convert this UnitScale to an integer. |
java.lang.Number |
getMultiplier()
Get the multiplier value associated with this unit scale. |
java.lang.String |
getName()
Method to return the name of this UnitScale. |
java.lang.String |
getPostFix()
Get the string representing the postfix associated with this unit scale |
static TextUtils.UnitScale[] |
getUnitScales()
Method to return a list of all scales. |
java.lang.String |
toString()
Returns a printable version of this Unit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TextUtils.UnitScale GIGA
public static final TextUtils.UnitScale MEGA
public static final TextUtils.UnitScale KILO
public static final TextUtils.UnitScale NONE
public static final TextUtils.UnitScale MILLI
public static final TextUtils.UnitScale MICRO
public static final TextUtils.UnitScale NANO
public static final TextUtils.UnitScale PICO
public static final TextUtils.UnitScale FEMTO
public static final TextUtils.UnitScale ATTO
public static final TextUtils.UnitScale ZEPTO
public static final TextUtils.UnitScale YOCTO
Method Detail |
---|
public java.lang.String getName()
public int getIndex()
public java.lang.String getPostFix()
public java.lang.Number getMultiplier()
public static TextUtils.UnitScale findFromIndex(int index)
index
- the index of the UnitScale.
public static TextUtils.UnitScale[] getUnitScales()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |