GLG Toolkit, Java Class Library
Version 4.5
|
Mutable double object. More...
Mutable double object.
This object contains a double value.
Public Member Functions | |
GlgDouble () | |
Default contsructor. More... | |
GlgDouble (Double double_obj) | |
Constructs a new GlgDouble with a specified value. More... | |
GlgDouble (double dvalue_p) | |
Constructs a new GlgDouble with a specified value. More... | |
GlgDouble (GlgDouble double_obj) | |
Copy constructor. More... | |
void | CopyFrom (GlgDouble double_obj) |
Copies a value from another GlgDouble. More... | |
double | doubleValue () |
Returns the object's value. More... | |
double | DoubleValue () |
Returns this object's value. More... | |
int | intValue () |
Returns this object's value as an integer. More... | |
int | IntValue () |
Returns this object's value as an integer. More... | |
Static Public Member Functions | |
static GlgDouble | GetFromCache (double value) |
Gets a GlgDouble object from a cache. More... | |
static void | ReleaseToCache (GlgDouble double_obj) |
Returns the object to the internal cache for reuse. More... | |
Public Attributes | |
double | dvalue |
The object's value. More... | |
double dvalue |
The object's value.
GlgDouble | ( | ) |
Default contsructor.
GlgDouble | ( | double | dvalue_p | ) |
Constructs a new GlgDouble with a specified value.
dvalue_p | The new value. |
GlgDouble | ( | Double | double_obj | ) |
Constructs a new GlgDouble with a specified value.
double_obj | The value object. |
Copy constructor.
double_obj | The object to copy the value from. |
void CopyFrom | ( | GlgDouble | double_obj | ) |
Copies a value from another GlgDouble.
double_obj | The object to copy the value from. |
double doubleValue | ( | ) |
Returns the object's value.
double DoubleValue | ( | ) |
Returns this object's value.
|
static |
Gets a GlgDouble 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 as an integer.
int IntValue | ( | ) |
Returns this object's value as an integer.
|
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.
double_obj | The object to release. |