de.dante.extex.interpreter.type.real
Class ImmutableReal

java.lang.Object
  extended byde.dante.extex.interpreter.type.real.Real
      extended byde.dante.extex.interpreter.type.real.ImmutableReal
All Implemented Interfaces:
java.io.Serializable

public class ImmutableReal
extends Real

An immutable Real.

Version:
$Revision: 1.2 $
Author:
Michael Niedermair
See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.dante.extex.interpreter.type.real.Real
MAX_VALUE, ZERO
 
Constructor Summary
ImmutableReal(double val)
          Creates a new object.
ImmutableReal(long l)
          Creates a new object.
 
Method Summary
 void add(double val)
          ...
 void add(Real real)
          ...
 void divide(double val)
          ...
 void divide(Real val)
          ...
 void multiply(double val)
          ...
 void multiply(Real val)
          ...
 void setValue(double d)
          Setter for the value.
 
Methods inherited from class de.dante.extex.interpreter.type.real.Real
getLong, getValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImmutableReal

public ImmutableReal(double val)
Creates a new object.

Parameters:
val - init with double-value

ImmutableReal

public ImmutableReal(long l)
Creates a new object.

Parameters:
l - the value as long
Method Detail

setValue

public void setValue(double d)
Setter for the value.

Overrides:
setValue in class Real
Parameters:
d - the new value

add

public void add(double val)
...

Overrides:
add in class Real
Parameters:
val - ...

add

public void add(Real real)
...

Overrides:
add in class Real
Parameters:
real - ...

divide

public void divide(double val)
...

Overrides:
divide in class Real
Parameters:
val - ...

divide

public void divide(Real val)
...

Overrides:
divide in class Real
Parameters:
val - ...

multiply

public void multiply(double val)
...

Overrides:
multiply in class Real
Parameters:
val - ...

multiply

public void multiply(Real val)
...

Overrides:
multiply in class Real
Parameters:
val - ...