|
JScience v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavolution.lang.TextFormat<Quantity>
org.jscience.physics.quantities.QuantityFormat
org.jscience.physics.quantities.QuantityFormat.Decimal
public static class QuantityFormat.Decimal
This class represents a decimal quantity format based upon a specific pattern.
DecimalFormat| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jscience.physics.quantities.QuantityFormat |
|---|
QuantityFormat.Decimal |
| Nested classes/interfaces inherited from class javolution.lang.TextFormat |
|---|
TextFormat.Cursor |
| Field Summary |
|---|
| Fields inherited from class org.jscience.physics.quantities.QuantityFormat |
|---|
EXACT_DIGITS_ONLY |
| Constructor Summary | |
|---|---|
QuantityFormat.Decimal(java.lang.String pattern)
Creates a DecimalFormat using the given pattern. |
|
| Method Summary | |
|---|---|
Text |
format(Quantity q)
|
Quantity |
parse(java.lang.CharSequence csq,
TextFormat.Cursor pos)
|
| Methods inherited from class org.jscience.physics.quantities.QuantityFormat |
|---|
current, getInstance, getOutputUnit, setCurrent, show |
| Methods inherited from class javolution.lang.TextFormat |
|---|
format, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuantityFormat.Decimal(java.lang.String pattern)
pattern - a pattern string.
java.lang.IllegalArgumentException - if the given pattern is invalid.DecimalFormat| Method Detail |
|---|
public Text format(Quantity q)
format in class TextFormat<Quantity>
public Quantity parse(java.lang.CharSequence csq,
TextFormat.Cursor pos)
parse in class TextFormat<Quantity>
|
JScience v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||