#include <object.hh>
Public Member Functions | |
| Integer (int value) | |
| bool | equals (Object *other) |
| Returns, whether two objects are equal. | |
| int | hashValue () |
| Return a hash value for the object. | |
| void | intoStringBuffer (misc::StringBuffer *sb) |
| Store a textual representation of the object in a misc::StringBuffer. | |
| int | compareTo (Comparable *other) |
| int | getValue () |
Private Attributes | |
| int | value |
| lout::object::Integer::Integer | ( | int | value | ) | [inline] |
| int lout::object::Integer::compareTo | ( | Comparable * | other | ) |
References value.
| bool lout::object::Integer::equals | ( | Object * | other | ) | [virtual] |
Returns, whether two objects are equal.
The caller should ensure, that this and the object have the same class; this makes casting of "other" safe. Typically, an implementation should check this == other first, the caller can assume a fast implementation.
Reimplemented from lout::object::Object.
References value.
| int lout::object::Integer::getValue | ( | ) | [inline] |
References value.
| int lout::object::Integer::hashValue | ( | ) | [virtual] |
| void lout::object::Integer::intoStringBuffer | ( | misc::StringBuffer * | sb | ) | [virtual] |
Store a textual representation of the object in a misc::StringBuffer.
This is used by object::Object::toString.
Reimplemented from lout::object::Object.
References lout::misc::StringBuffer::append(), and value.
int lout::object::Integer::value [private] |
Referenced by compareTo(), equals(), getValue(), hashValue(), and intoStringBuffer().
1.5.9