org.extex.interpreter.primitives.register.real
Class ImmutableReal

java.lang.Object
  extended by org.extex.interpreter.primitives.register.real.Real
      extended by org.extex.interpreter.primitives.register.real.ImmutableReal
All Implemented Interfaces:
java.io.Serializable

public class ImmutableReal
extends Real

An immutable Real.

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

Field Summary
 
Fields inherited from class org.extex.interpreter.primitives.register.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)
          add
 void add(Real real)
          add
 void divide(double val)
          divide
 void divide(Real val)
          divide
 void multiply(double val)
          multiply
 void multiply(Real val)
          multiply
 void setValue(double d)
          Setter for the value.
 
Methods inherited from class org.extex.interpreter.primitives.register.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

add

public void add(double val)
add

Overrides:
add in class Real
Parameters:
val - the value to add
See Also:
Real.add(double)

add

public void add(Real real)
add

Overrides:
add in class Real
Parameters:
real - the value to add
See Also:
Real.add( org.extex.interpreter.primitives.register.real.Real)

divide

public void divide(double val)
divide

Overrides:
divide in class Real
Parameters:
val - the value to divide
See Also:
Real.divide(double)

divide

public void divide(Real val)
divide

Overrides:
divide in class Real
Parameters:
val - the value to divide
See Also:
Real.divide( org.extex.interpreter.primitives.register.real.Real)

multiply

public void multiply(double val)
multiply

Overrides:
multiply in class Real
Parameters:
val - the value to multiply
See Also:
Real.multiply(double)

multiply

public void multiply(Real val)
multiply

Overrides:
multiply in class Real
Parameters:
val - the value to multiply
See Also:
Real.multiply( org.extex.interpreter.primitives.register.real.Real)

setValue

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

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