Package org.onemind.commons.java.lang
Class MutableDouble
- java.lang.Object
-
- java.lang.Number
-
- org.onemind.commons.java.lang.MutableDouble
-
- All Implemented Interfaces:
java.io.Serializable
public class MutableDouble extends java.lang.Number
A mutable double- Version:
- $Id: MutableDouble.java,v 1.3 2004/09/03 13:24:14 thlee Exp $ $Name: $
- Author:
- TiongHiang Lee (thlee@onemindsoft.org)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private double
_value
the value *
-
Constructor Summary
Constructors Constructor Description MutableDouble(double l)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
void
dec(double i)
decrease by idouble
doubleValue()
float
floatValue()
void
inc(double i)
increase by iint
intValue()
long
longValue()
void
set(double l)
Set the double valueshort
shortValue()
java.lang.String
toString()
-
-
-
Method Detail
-
set
public final void set(double l)
Set the double value- Parameters:
l
- the value
-
byteValue
public final byte byteValue()
- Overrides:
byteValue
in classjava.lang.Number
-
doubleValue
public final double doubleValue()
- Specified by:
doubleValue
in classjava.lang.Number
-
floatValue
public final float floatValue()
- Specified by:
floatValue
in classjava.lang.Number
-
intValue
public final int intValue()
- Specified by:
intValue
in classjava.lang.Number
-
longValue
public final long longValue()
- Specified by:
longValue
in classjava.lang.Number
-
shortValue
public final short shortValue()
- Overrides:
shortValue
in classjava.lang.Number
-
inc
public void inc(double i)
increase by i- Parameters:
i
- the value to increase
-
dec
public void dec(double i)
decrease by i- Parameters:
i
- the value to decrease
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-