org.tigris.scarab.util
Class MutableBoolean

java.lang.Object
  extended byorg.tigris.scarab.util.MutableBoolean

public class MutableBoolean
extends java.lang.Object

This class represents a mutable boolean, i.e. you can set it's state after creation.

Author:
Hussayn Dabbous

Field Summary
(package private)  boolean state
          The boolean state (true/false)
 
Constructor Summary
MutableBoolean(boolean theState)
          The constructor defines the initial state of the instance.
 
Method Summary
 boolean booleanValue()
          Get the internal state.
 void set(boolean theState)
          Set the internal state to true/false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

boolean state
The boolean state (true/false)

Constructor Detail

MutableBoolean

public MutableBoolean(boolean theState)
The constructor defines the initial state of the instance.

Parameters:
theState -
Method Detail

set

public void set(boolean theState)
Set the internal state to true/false

Parameters:
theState -

booleanValue

public boolean booleanValue()
Get the internal state.

Returns:


Copyright © 2000-2004 Tigris.org. All Rights Reserved.