SoftNet-Consult Java Utility Library

com.softnetConsult.utils.mutableWrappers
Class MutableDouble

java.lang.Object
  extended by java.lang.Number
      extended by com.softnetConsult.utils.mutableWrappers.MutableDouble
All Implemented Interfaces:
MutableWrapper, java.io.Serializable

public class MutableDouble
extends java.lang.Number
implements MutableWrapper

This class wraps a single public variable of type double - it can be used to emulate passing double values by reference. All methods here are self-explanatory and perform the same function as the corresponding methods of the classes Number and Double.

This product includes software developed by the SoftNet-Consult Java Utility Library project and its contributors.
(http://java-tools.sourceforge.net)
Copyright (c) 2007-2008 SoftNet-Consult.
Copyright (c) 2007-2008 G. Paperin.
All rights reserved.

File: MutableDouble.java
Library API version: "2.02"
Java compliance version: "1.5"

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following terms and conditions are met:

1. Redistributions of source code must retain the above acknowledgement of the SoftNet-Consult Java Utility Library project, the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above acknowledgement of the SoftNet-Consult Java Utility Library project, the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software or any derived software must display the following acknowledgement:
This product includes software developed by the SoftNet-Consult Java Utility Library project and its contributors.

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version:
"2.02"
Author:
Greg Paperin (http://www.paperin.org)
See Also:
Serialized Form

Field Summary
 double value
           
 
Constructor Summary
MutableDouble()
           
MutableDouble(double value)
           
MutableDouble(java.lang.String value)
           
 
Method Summary
 boolean booleanValue()
           
 byte byteValue()
           
 double doubleValue()
           
 float floatValue()
           
 int intValue()
           
 long longValue()
           
 short shortValue()
           
 java.lang.String stringValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public double value
Constructor Detail

MutableDouble

public MutableDouble()

MutableDouble

public MutableDouble(double value)

MutableDouble

public MutableDouble(java.lang.String value)
Method Detail

booleanValue

public boolean booleanValue()
Specified by:
booleanValue in interface MutableWrapper

byteValue

public byte byteValue()
Specified by:
byteValue in interface MutableWrapper
Overrides:
byteValue in class java.lang.Number

shortValue

public short shortValue()
Specified by:
shortValue in interface MutableWrapper
Overrides:
shortValue in class java.lang.Number

intValue

public int intValue()
Specified by:
intValue in interface MutableWrapper
Specified by:
intValue in class java.lang.Number

longValue

public long longValue()
Specified by:
longValue in interface MutableWrapper
Specified by:
longValue in class java.lang.Number

floatValue

public float floatValue()
Specified by:
floatValue in interface MutableWrapper
Specified by:
floatValue in class java.lang.Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in interface MutableWrapper
Specified by:
doubleValue in class java.lang.Number

stringValue

public java.lang.String stringValue()
Specified by:
stringValue in interface MutableWrapper

toString

public java.lang.String toString()
Specified by:
toString in interface MutableWrapper
Overrides:
toString in class java.lang.Object

SoftNet-Consult Java Utility Library is a member of SourceForge.net