18 #ifndef _DECAF_LANG_BOOLEAN_H_
19 #define _DECAF_LANG_BOOLEAN_H_
72 std::string toString()
const;
82 virtual int compareTo(
const Boolean& b)
const;
103 return this->value == b.value;
114 virtual int compareTo(
const bool& b)
const;
121 virtual bool operator==(
const bool& value)
const;
129 virtual bool operator<(
const bool& value)
const;
135 return this->value == b;
146 static Boolean valueOf(
bool value);
163 static bool parseBoolean(
const String& value);
172 static std::string toString(
bool value);
static const Boolean _FALSE
The Class object representing the primitive false boolean.
Definition: Boolean.h:41
static const Boolean _TRUE
The Class object representing the primitive type boolean.
Definition: Boolean.h:46
bool booleanValue() const
Definition: Boolean.h:65
bool equals(const bool &b) const
Definition: Boolean.h:134
virtual ~Boolean()
Definition: Boolean.h:60
An immutable sequence of characters.
Definition: String.h:57
#define DECAF_API
Definition: Config.h:29
bool equals(const Boolean &b) const
Definition: Boolean.h:102
bool operator==(const ArrayPointer< T > &left, const U *right)
Definition: ArrayPointer.h:379
This interface imposes a total ordering on the objects of each class that implements it...
Definition: Comparable.h:33
bool operator<(const std::string &left, const String &right)