|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.type.count.Count
de.dante.extex.interpreter.type.count.ImmutableCount
This class provides an implementation of a Count where all methods modifying the contents are redefined to produce an exception.
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Fields inherited from class de.dante.extex.interpreter.type.count.Count |
ONE, THOUSAND, ZERO |
Constructor Summary | |
ImmutableCount(FixedCount value)
Creates a new object. |
|
ImmutableCount(long value)
Creates a new object. |
Method Summary | |
void |
add(long val)
Add a long to the value. |
void |
divide(long val)
Divide the value by a long. |
void |
multiply(long val)
Multiply the value with a factor. |
Methods inherited from class de.dante.extex.interpreter.type.count.Count |
eq, ge, getLocalizer, getValue, gt, le, lt, ne, parse, scanInteger, scanNumber, scanNumber, set, setValue, toString, toString, toToks |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public ImmutableCount(long value)
value
- the value to be storedpublic ImmutableCount(FixedCount value)
value
- the value to be storedMethod Detail |
public void add(long val)
Count
add
in class Count
val
- the value to add toCount.add(long)
public void divide(long val)
Count
divide
in class Count
val
- the denominator to divide byCount.divide(long)
public void multiply(long val)
Count
multiply
in class Count
val
- the factor to multiply withCount.multiply(long)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |