Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.sim.util
Class DoubleWrapper

    java.lang.Object
      uchicago.src.sim.util.DoubleWrapper

Direct Known Subclasses:
  ByteWrapper, FloatWrapper, IntWrapper, LongWrapper

    public class DoubleWrapper

extends java.lang.Object

Mutable wrapper for a double primitive. Used by ProbeableNumber as the probed object when probing spaces that contain primitives.

Version:
  $Revision: 1.3 $ $Date: 2004/11/03 19:51:06 $
Author:
  Nick Collier

Field Summary
`protected double` | `val`

Constructor Summary
`DoubleWrapper(double val)` Creates a DoubleWrapper that wraps the specified double.

Method Summary
`double` | `doubleVal()` Gets the double value that this wraps.
`java.lang.Number` | `getWrappedNumber()` Gets the wrapped value as a Number.
`void` | `setVal(double val)` Sets the double value that this wraps.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### val

    protected double val

Constructor Detail

### DoubleWrapper

    public DoubleWrapper(double val)

  Creates a DoubleWrapper that wraps the specified double.

  Parameters:
    `val` - the double to wrap

Method Detail

### doubleVal

    public double doubleVal()

  Gets the double value that this wraps.

### setVal

    public void setVal(double val)

  Sets the double value that this wraps.

### getWrappedNumber

    public java.lang.Number getWrappedNumber()

  Gets the wrapped value as a Number.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD