|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.units.DefaultUnitsDB.Prefixer
protected class DefaultUnitsDB.Prefixer
Inner (helper) class for parsing unit prefixes.
| Field Summary | |
|---|---|
protected int |
pos
The current position within the string. |
protected String |
string
The string being parsed. |
protected double |
value
The current value of the prefix. |
| Constructor Summary | |
|---|---|
protected |
DefaultUnitsDB.Prefixer(String string)
Construct. |
| Method Summary | |
|---|---|
protected String |
getString()
Return the current, remaining string. |
protected double |
getValue()
Return the current prefix value. |
protected boolean |
isLessThan(UnitPrefix prefix)
Indicate whether or not the beginning of the remainder of the string is less than a prefix. |
protected boolean |
stripPrefix(UnitPrefix[] names,
UnitPrefix[] symbols)
Strip leading prefix from the string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String string
protected int pos
protected double value
| Constructor Detail |
|---|
protected DefaultUnitsDB.Prefixer(String string)
| Method Detail |
|---|
protected boolean stripPrefix(UnitPrefix[] names,
UnitPrefix[] symbols)
protected boolean isLessThan(UnitPrefix prefix)
protected String getString()
protected double getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||