net.sf.plist
Class NSBoolean

java.lang.Object
  extended by net.sf.plist.NSObject
      extended by net.sf.plist.NSBoolean

public class NSBoolean
extends NSObject

Represents a value of either Boolean.TRUE or Boolean.FALSE.

In this implementation, a primitive boolean is used to represent the NSBoolean.

See Also:
Boolean

Field Summary
static NSBoolean FALSE
          Represents Boolean.FALSE
static NSBoolean TRUE
          Represents Boolean.TRUE
 
Constructor Summary
NSBoolean(boolean theBoolean)
          Constructor.
 
Method Summary
 boolean bool()
          Get the boolean represented by this object.
 Boolean getValue()
          Get the unmodifiable value of this object.
 boolean isTrue()
           
 
Methods inherited from class net.sf.plist.NSObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

public static final NSBoolean TRUE
Represents Boolean.TRUE


FALSE

public static final NSBoolean FALSE
Represents Boolean.FALSE

Constructor Detail

NSBoolean

public NSBoolean(boolean theBoolean)
Constructor.

Parameters:
theBoolean - value of the new object
Method Detail

getValue

public Boolean getValue()
Get the unmodifiable value of this object.

Specified by:
getValue in class NSObject
Returns:
the value of this object
See Also:
bool(), bool()

isTrue

public boolean isTrue()
See Also:
bool()

bool

public boolean bool()
Get the boolean represented by this object.

Returns:
the boolean