drcl.data
Class DoubleObj
java.lang.Object
drcl.DrclObj
drcl.data.NumberObj
drcl.data.DoubleObj
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable
- public class DoubleObj
- extends NumberObj
Class that is similar to Double but is mutable.
- See Also:
- Serialized Form
|
Field Summary |
double |
value
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
value
public double value
DoubleObj
public DoubleObj()
DoubleObj
public DoubleObj(double v)
setValue
public void setValue(double v)
getValue
public double getValue()
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
duplicate
public void duplicate(java.lang.Object source_)
- Description copied from class:
DrclObj
- opies the content of the
source_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
- Specified by:
duplicate in interface ObjectDuplicable- Overrides:
duplicate in class DrclObj
inc
public double inc(double delta_)
- Increases the double by delta_ and returns the new value.
toString
public java.lang.String toString()
- Overrides:
toString in class DrclObj
byteValue
public byte byteValue()
- Specified by:
byteValue in class NumberObj
floatValue
public float floatValue()
- Specified by:
floatValue in class NumberObj
doubleValue
public double doubleValue()
- Specified by:
doubleValue in class NumberObj
intValue
public int intValue()
- Specified by:
intValue in class NumberObj
longValue
public long longValue()
- Specified by:
longValue in class NumberObj
shortValue
public short shortValue()
- Specified by:
shortValue in class NumberObj
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~