DRCL JavaSim API

drcl.data
Class BooleanObj

java.lang.Object
  |
  +--drcl.DrclObj
        |
        +--drcl.data.BooleanObj
All Implemented Interfaces:
java.lang.Cloneable, 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
           
 
Constructor Summary
BooleanObj()
           
BooleanObj(boolean v)
           
 
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 drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public boolean value
Constructor Detail

BooleanObj

public BooleanObj()

BooleanObj

public BooleanObj(boolean v)
Method Detail

setValue

public void setValue(boolean v)

getValue

public boolean getValue()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

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

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~