org.knime.core.util
Class MutableBoolean

java.lang.Object
  extended by org.knime.core.util.MutableBoolean

public class MutableBoolean
extends Object

A Boolean object whose value can be changed after construction.

Author:
ohl, University of Konstanz

Constructor Summary
MutableBoolean(boolean val)
          Constructor setting its initial value from the boolean value specified.
MutableBoolean(String s)
          Constructor deriving its initial value from the specified string.
 
Method Summary
 boolean booleanValue()
          Returns the value of this object as a boolean primitive.
 void setValue(boolean val)
          Sets the value of this MutableBoolean.
 String toString()
          Returns a String representing this objects value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableBoolean

public MutableBoolean(boolean val)
Constructor setting its initial value from the boolean value specified.

Parameters:
val - the initial value.

MutableBoolean

public MutableBoolean(String s)
Constructor deriving its initial value from the specified string. The value of the new object is set true, if and only if the string is not null and equals (ignoring case) "true".

Parameters:
s - the string to be converted to a the initial value.
Method Detail

setValue

public void setValue(boolean val)
Sets the value of this MutableBoolean.

Parameters:
val - the new value.

booleanValue

public boolean booleanValue()
Returns the value of this object as a boolean primitive.

Returns:
the primitive boolean value of this object.

toString

public String toString()
Returns a String representing this objects value. If this object represents the value true, a string equal to "true" is returned. Otherwise, a string equal to "false" is returned.

Overrides:
toString in class Object
Returns:
a string representation of this object.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.