DRCL J-Sim API

drcl.data
Class LongObj

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

public class LongObj
extends NumberObj

Class that is similar to Long but is mutable.

See Also:
Serialized Form

Field Summary
 long value
           
 
Constructor Summary
LongObj()
           
LongObj(long 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()
           
 long getValue()
           
 int hashCode()
           
 long inc(long delta_)
          Increases the long by delta_ and returns the new value.
 int intValue()
           
 long longValue()
           
 void setValue(long 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 long value
Constructor Detail

LongObj

public LongObj()

LongObj

public LongObj(long v)
Method Detail

setValue

public void setValue(long v)

getValue

public long 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 long inc(long delta_)
Increases the long 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 ~