drcl.data
Class BooleanObj
java.lang.Object
drcl.DrclObj
drcl.data.BooleanObj
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable
- public class BooleanObj
- extends DrclObj
Class that is similar to Boolean but is mutable.
- See Also:
- Serialized Form
|
Field Summary |
boolean |
value
|
|
Method Summary |
void |
duplicate(java.lang.Object source_)
opies the content of the source_ object to this object.
|
boolean |
equals(java.lang.Object o)
|
boolean |
flip()
Flips the boolean value and returns the new one. |
boolean |
getValue()
|
int |
hashCode()
|
void |
setValue(boolean v)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
value
public boolean value
BooleanObj
public BooleanObj()
BooleanObj
public BooleanObj(boolean v)
setValue
public void setValue(boolean v)
getValue
public boolean 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
flip
public boolean flip()
- Flips the boolean value and returns the new one.
toString
public java.lang.String toString()
- Overrides:
toString in class DrclObj
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~