#include <src/main/decaf/lang/Boolean.h>
◆ Boolean() [1/2]
| decaf::lang::Boolean::Boolean |
( |
bool |
value | ) |
|
- Parameters
-
| value | - primitive boolean to wrap. |
◆ Boolean() [2/2]
| decaf::lang::Boolean::Boolean |
( |
const std::string & |
value | ) |
|
- Parameters
-
| value | - String value to convert to a boolean. |
◆ ~Boolean()
| virtual decaf::lang::Boolean::~Boolean |
( |
| ) |
|
|
inlinevirtual |
◆ booleanValue()
| bool decaf::lang::Boolean::booleanValue |
( |
| ) |
const |
|
inline |
◆ compareTo() [1/2]
| 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 >.
◆ compareTo() [2/2]
| 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 >.
◆ equals() [1/2]
| bool decaf::lang::Boolean::equals |
( |
const Boolean & |
b | ) |
const |
|
inlinevirtual |
◆ equals() [2/2]
| bool decaf::lang::Boolean::equals |
( |
const bool & |
b | ) |
const |
|
inlinevirtual |
◆ operator<() [1/2]
| 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 >.
◆ operator<() [2/2]
| 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 >.
◆ operator==() [1/2]
| 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 >.
◆ operator==() [2/2]
| 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 >.
◆ parseBoolean()
| 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
◆ toString() [1/2]
| std::string decaf::lang::Boolean::toString |
( |
| ) |
const |
- Returns
- the string representation of this Booleans value.
◆ toString() [2/2]
| 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.
◆ valueOf() [1/2]
| 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
◆ valueOf() [2/2]
| 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
◆ _FALSE
The Class object representing the primitive false boolean.
◆ _TRUE
The Class object representing the primitive type boolean.
The documentation for this class was generated from the following file: