org.onemind.commons.java.lang
Class MutableLong

java.lang.Object
  extended byjava.lang.Number
      extended byorg.onemind.commons.java.lang.MutableLong
All Implemented Interfaces:
java.io.Serializable

public class MutableLong
extends java.lang.Number

An 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

Constructor Summary
MutableLong(long l)
          {@inheritDoc}
 
Method Summary
 byte byteValue()
          
 void dec(long i)
          decrease by i
 double doubleValue()
          
 float floatValue()
          
 void inc(long i)
          increase by i
 int intValue()
          
 long longValue()
          
 void set(long l)
          Set the long value
 short shortValue()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableLong

public MutableLong(long l)
{@inheritDoc}

Parameters:
l - the long value
Method Detail

set

public final void set(long l)
Set the long value

Parameters:
l - the long value

byteValue

public final byte byteValue()


doubleValue

public final double doubleValue()


floatValue

public final float floatValue()


intValue

public final int intValue()


longValue

public final long longValue()


shortValue

public final short shortValue()


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()



Copyright © 2004-2006 . All Rights Reserved.