#include <src/main/decaf/lang/Boolean.h>
Public Member Functions |
| Boolean (bool value) |
| Boolean (const std::string &value) |
virtual | ~Boolean () |
bool | booleanValue () const |
std::string | toString () const |
virtual int | compareTo (const Boolean &b) const |
| Compares this Boolean instance with another.
|
virtual bool | operator== (const Boolean &value) const |
| Compares equality between this object and the one passed.
|
virtual bool | operator< (const Boolean &value) const |
| Compares this object to another and returns true if this object is considered to be less than the one passed.
|
bool | equals (const Boolean &b) const |
virtual int | compareTo (const bool &b) const |
| Compares this Boolean instance with another.
|
virtual bool | operator== (const bool &value) const |
| Compares equality between this object and the one passed.
|
virtual bool | operator< (const bool &value) const |
| Compares this object to another and returns true if this object is considered to be less than the one passed.
|
bool | equals (const bool &b) const |
Static Public Member Functions |
static Boolean | valueOf (bool value) |
static Boolean | valueOf (const std::string &value) |
static bool | parseBoolean (const std::string &value) |
| Parses the String passed and extracts an bool.
|
static std::string | toString (bool value) |
| Converts the bool to a String representation.
|
Static Public Attributes |
static const Boolean | _FALSE |
| The Class object representing the primitive false boolean.
|
static const Boolean | _TRUE |
| The Class object representing the primitive type boolean.
|
Constructor & Destructor Documentation
decaf::lang::Boolean::Boolean |
( |
bool |
value | ) |
|
- Parameters:
-
value | - primitive boolean to wrap. |
decaf::lang::Boolean::Boolean |
( |
const std::string & |
value | ) |
|
- Parameters:
-
value | - String value to convert to a boolean. |
virtual decaf::lang::Boolean::~Boolean |
( |
| ) |
[inline, virtual] |
Member Function Documentation
bool decaf::lang::Boolean::booleanValue |
( |
| ) |
const [inline] |
- Returns:
- the primitive boolean value of this object
virtual int decaf::lang::Boolean::compareTo |
( |
const Boolean & |
b | ) |
const [virtual] |
Compares this Boolean instance with another.
- Parameters:
-
b | - the Boolean instance to be compared |
- Returns:
- zero if this object represents the same boolean value as the argument; a positive value if this object represents true and the argument represents false; and a negative value if this object represents false and the argument represents true
Implements decaf::lang::Comparable< Boolean >.
virtual int decaf::lang::Boolean::compareTo |
( |
const bool & |
b | ) |
const [virtual] |
Compares this Boolean instance with another.
- Parameters:
-
b | - the Boolean instance to be compared |
- Returns:
- zero if this object represents the same boolean value as the argument; a positive value if this object represents true and the argument represents false; and a negative value if this object represents false and the argument represents true
Implements decaf::lang::Comparable< bool >.
bool decaf::lang::Boolean::equals |
( |
const bool & |
b | ) |
const [inline, virtual] |
bool decaf::lang::Boolean::equals |
( |
const Boolean & |
b | ) |
const [inline, virtual] |
virtual bool decaf::lang::Boolean::operator< |
( |
const bool & |
value | ) |
const [virtual] |
Compares this object to another and returns true if this object is considered to be less than the one passed.
This
- Parameters:
-
value | - the value to be compared to this one. |
- Returns:
- true if this object is equal to the one passed.
Implements decaf::lang::Comparable< bool >.
virtual bool decaf::lang::Boolean::operator< |
( |
const Boolean & |
value | ) |
const [virtual] |
Compares this object to another and returns true if this object is considered to be less than the one passed.
This
- Parameters:
-
value | - the value to be compared to this one. |
- Returns:
- true if this object is equal to the one passed.
Implements decaf::lang::Comparable< Boolean >.
virtual bool decaf::lang::Boolean::operator== |
( |
const bool & |
value | ) |
const [virtual] |
Compares equality between this object and the one passed.
- Parameters:
-
value | - the value to be compared to this one. |
- Returns:
- true if this object is equal to the one passed.
Implements decaf::lang::Comparable< bool >.
virtual bool decaf::lang::Boolean::operator== |
( |
const Boolean & |
value | ) |
const [virtual] |
Compares equality between this object and the one passed.
- Parameters:
-
value | - the value to be compared to this one. |
- Returns:
- true if this object is equal to the one passed.
Implements decaf::lang::Comparable< Boolean >.
static bool decaf::lang::Boolean::parseBoolean |
( |
const std::string & |
value | ) |
[static] |
Parses the String passed and extracts an bool.
- Parameters:
-
value | The std::string value to parse |
- Returns:
- bool value
static std::string decaf::lang::Boolean::toString |
( |
bool |
value | ) |
[static] |
Converts the bool to a String representation.
- Parameters:
-
value | The bool value to convert. |
- Returns:
- std::string representation of the bool value passed.
std::string decaf::lang::Boolean::toString |
( |
| ) |
const |
- Returns:
- the string representation of this Booleans value.
static Boolean decaf::lang::Boolean::valueOf |
( |
bool |
value | ) |
[static] |
- Parameters:
-
value | The bool value to convert to a Boolean instance. |
- Returns:
- a Boolean instance of the primitive boolean value
static Boolean decaf::lang::Boolean::valueOf |
( |
const std::string & |
value | ) |
[static] |
- Parameters:
-
value | The std::string value to convert to a Boolean instance. |
- Returns:
- a Boolean instance of the string value
Field Documentation
The Class object representing the primitive false boolean.
The Class object representing the primitive type boolean.
The documentation for this class was generated from the following file: