Package org.onemind.commons.java.lang
Class MutableLong
- java.lang.Object
-
- java.lang.Number
-
- org.onemind.commons.java.lang.MutableLong
-
- All Implemented Interfaces:
java.io.Serializable
public class MutableLong extends java.lang.NumberAn mutable long- Version:
- $Id: MutableLong.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 long_valuethe long value *
-
Constructor Summary
Constructors Constructor Description MutableLong(long l)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebyteValue()voiddec(long i)decrease by idoubledoubleValue()floatfloatValue()voidinc(long i)increase by iintintValue()longlongValue()voidset(long l)Set the long valueshortshortValue()java.lang.StringtoString()
-
-
-
Method Detail
-
set
public final void set(long l)
Set the long value- Parameters:
l- the long value
-
byteValue
public final byte byteValue()
- Overrides:
byteValuein classjava.lang.Number
-
doubleValue
public final double doubleValue()
- Specified by:
doubleValuein classjava.lang.Number
-
floatValue
public final float floatValue()
- Specified by:
floatValuein classjava.lang.Number
-
intValue
public final int intValue()
- Specified by:
intValuein classjava.lang.Number
-
longValue
public final long longValue()
- Specified by:
longValuein classjava.lang.Number
-
shortValue
public final short shortValue()
- Overrides:
shortValuein classjava.lang.Number
-
inc
public void inc(long i)
increase by i- Parameters:
i- the value to increase
-
dec
public void dec(long i)
decrease by i- Parameters:
i- the value to decrease
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-