GLG Toolkit, Java Class Library
Version 4.5
|
Mutable integer object. More...
Mutable integer object.
This object contains an integer value and is used to pass integer values as objects to and from the SendMessage method.
Public Member Functions | |
GlgInteger () | |
Default contsructor. More... | |
GlgInteger (GlgInteger integer_obj) | |
Copy constructor. More... | |
GlgInteger (int value) | |
Constructs a new GlgInteger with a specified value. More... | |
GlgInteger (Integer integer_obj) | |
Constructs a new GlgInteger with a specified value. More... | |
void | CopyFrom (GlgInteger integer_obj) |
Copies a value from another GlgInteger. More... | |
int | intValue () |
Returns this object's value. More... | |
int | IntValue () |
Returns this object's value. More... | |
Static Public Member Functions | |
static GlgInteger | GetFromCache (int value) |
Gets a GlgInteger object from a cache. More... | |
static void | ReleaseToCache (GlgInteger integer_obj) |
Returns the object to the internal cache for reuse. More... | |
Public Attributes | |
int | ivalue |
The object's value. More... | |
int ivalue |
The object's value.
GlgInteger | ( | ) |
Default contsructor.
GlgInteger | ( | int | value | ) |
Constructs a new GlgInteger with a specified value.
value | The new value. |
GlgInteger | ( | GlgInteger | integer_obj | ) |
Copy constructor.
integer_obj | An object to copy. |
GlgInteger | ( | Integer | integer_obj | ) |
Constructs a new GlgInteger with a specified value.
integer_obj | The object containing a new value. |
void CopyFrom | ( | GlgInteger | integer_obj | ) |
Copies a value from another GlgInteger.
integer_obj | The object to copy the value from. |
|
static |
Gets a GlgInteger object from a cache.
The method returns an object from an internal cache, or a newly created object if the cache is empty. The returned object is initialized to the specified value.
value | The new value. |
int intValue | ( | ) |
Returns this object's value.
int IntValue | ( | ) |
Returns this object's value.
|
static |
Returns the object to the internal cache for reuse.
The object should not be accessed after it is released to the cache.
Only objects obtained with a call to GLG API method should be released to the cache. Releasing to the cache objects created with new would result in consuming resources due to the growth of the cache size.
integer_obj | The object to release. |