DRCL J-Sim API

drcl.data
Class IntObj

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.data.NumberObj
          extended bydrcl.data.IntObj
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable

public class IntObj
extends NumberObj

Class that is similar to Integer but is mutable.

See Also:
Serialized Form

Field Summary
 int value
           
 
Constructor Summary
IntObj()
           
IntObj(int v)
           
 
Method Summary
 byte byteValue()
           
 double doubleValue()
           
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 boolean equals(java.lang.Object o)
           
 float floatValue()
           
 int getValue()
           
 int hashCode()
           
 int inc(int delta_)
          Increases the integer by delta_ and returns the new value.
 int intValue()
           
 long longValue()
           
 void setValue(int v)
           
 short shortValue()
           
 java.lang.String toString()
           
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public int value
Constructor Detail

IntObj

public IntObj()

IntObj

public IntObj(int v)
Method Detail

setValue

public void setValue(int v)

getValue

public int getValue()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

duplicate

public void duplicate(java.lang.Object source_)
Description copied from class: DrclObj
opies the content of the source_ object to this object. he subclass must implement this method to realize DrclObj.clone().

Specified by:
duplicate in interface ObjectDuplicable
Overrides:
duplicate in class DrclObj

inc

public int inc(int delta_)
Increases the integer by delta_ and returns the new value.


toString

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

byteValue

public byte byteValue()
Specified by:
byteValue in class NumberObj

floatValue

public float floatValue()
Specified by:
floatValue in class NumberObj

doubleValue

public double doubleValue()
Specified by:
doubleValue in class NumberObj

intValue

public int intValue()
Specified by:
intValue in class NumberObj

longValue

public long longValue()
Specified by:
longValue in class NumberObj

shortValue

public short shortValue()
Specified by:
shortValue in class NumberObj

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~