com.softnetConsult.utils.mutableWrappers
Class MutableLong
java.lang.Object
java.lang.Number
com.softnetConsult.utils.mutableWrappers.MutableLong
- All Implemented Interfaces:
- MutableWrapper, java.io.Serializable
public class MutableLong
- extends java.lang.Number
- implements MutableWrapper
This class wraps a single public variable of type long
-
it can be used to emulate passing long values by reference.
All methods here are self-explanatory and perform the same function as the corresponding
methods of the classes Number
and Long
.
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: MutableLong.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
value
public long value
MutableLong
public MutableLong()
MutableLong
public MutableLong(long value)
MutableLong
public MutableLong(java.lang.String value)
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