org.mbari.siam.distributed.jddac
Class MutableInteger

java.lang.Object
  extended by java.lang.Number
      extended by org.mbari.siam.distributed.jddac.MutableInteger
All Implemented Interfaces:
java.io.Serializable

public class MutableInteger
extends java.lang.Number
implements java.io.Serializable

Wrap a primitive integer into an Object, provide methods to modify integer's value.

See Also:
Serialized Form

Field Summary
 int _value
           
 
Constructor Summary
MutableInteger(int value)
           
 
Method Summary
 byte byteValue()
          Return value as a byte.
 double doubleValue()
          Return value as a double.
 float floatValue()
          Return value as a float.
 int intValue()
          Return value as an int.
 long longValue()
          Return value as a long.
 void set(int value)
          Set integer's value.
 short shortValue()
          Return value as a short.
 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 int _value
Constructor Detail

MutableInteger

public MutableInteger(int value)
Method Detail

set

public void set(int value)
Set integer's value.


byteValue

public byte byteValue()
Return value as a byte.

Overrides:
byteValue in class java.lang.Number

doubleValue

public double doubleValue()
Return value as a double.

Specified by:
doubleValue in class java.lang.Number

floatValue

public float floatValue()
Return value as a float.

Specified by:
floatValue in class java.lang.Number

intValue

public int intValue()
Return value as an int.

Specified by:
intValue in class java.lang.Number

longValue

public long longValue()
Return value as a long.

Specified by:
longValue in class java.lang.Number

shortValue

public short shortValue()
Return value as a short.

Overrides:
shortValue in class java.lang.Number

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.