Creates a new instance of the object and assigns its value.
(optional) value to initialize this object.
The value stored by this object.
Creates a binary clone of this object.
a clone of this object.
Compares this object value to specified specified value. When direct comparison gives negative results it tries to compare values as strings.
the value to be compared with.
true when objects are equal and false otherwise.
Compares this object value to specified specified value. When direct comparison gives negative results it converts values to type specified by type code and compare them again.
the value to be compared with.
true when objects are equal and false otherwise.
Converts object value into an AnyArray or returns empty AnyArray if conversion is not possible.
AnyArray value or empty AnyArray if conversion is not supported.
Converts object value into a boolean or returns false if conversion is not possible.
string value or false if conversion is not supported.
Converts object value into a boolean or returns default value if conversion is not possible.
the default value.
boolean value or default if conversion is not supported.
Converts object value into a Date or returns current date if conversion is not possible.
Date value or current date if conversion is not supported.
Converts object value into a Date or returns default value if conversion is not possible.
the default value.
Date value or default if conversion is not supported.
Converts object value into a double or returns 0 if conversion is not possible.
double value or 0 if conversion is not supported.
Converts object value into a double or returns default value if conversion is not possible.
the default value.
double value or default if conversion is not supported.
Converts object value into a float or returns 0 if conversion is not possible.
float value or 0 if conversion is not supported.
Converts object value into a float or returns default value if conversion is not possible.
the default value.
float value or default if conversion is not supported.
Converts object value into an integer or returns 0 if conversion is not possible.
integer value or 0 if conversion is not supported.
Converts object value into a integer or returns default value if conversion is not possible.
the default value.
integer value or default if conversion is not supported.
Converts object value into a long or returns 0 if conversion is not possible.
string value or 0 if conversion is not supported.
Converts object value into a long or returns default value if conversion is not possible.
the default value.
long value or default if conversion is not supported.
Converts object value into AnyMap or returns empty AnyMap if conversion is not possible.
AnyMap value or empty AnyMap if conversion is not supported.
Converts object value into a boolean or returns null if conversion is not possible.
boolean value or null if conversion is not supported.
Converts object value into a Date or returns null if conversion is not possible.
Date value or null if conversion is not supported.
Converts object value into a double or returns null if conversion is not possible.
double value or null if conversion is not supported.
Converts object value into a float or returns null if conversion is not possible.
float value or null if conversion is not supported.
Converts object value into an integer or returns null if conversion is not possible.
integer value or null if conversion is not supported.
Converts object value into a long or returns null if conversion is not possible.
long value or null if conversion is not supported.
Converts object value into a string or returns null if conversion is not possible.
string value or null if conversion is not supported.
Converts object value into a value defined by specied typecode. If conversion is not possible it returns null.
the TypeCode that defined the type of the result
value defined by the typecode or null if conversion is not supported.
Gets the value stored in this object without any conversions
the object value.
Converts object value into a string or returns "" if conversion is not possible.
string value or "" if conversion is not supported.
Converts object value into a string or returns default value if conversion is not possible.
the default value.
string value or default if conversion is not supported.
Converts object value into a value defined by specied typecode. If conversion is not possible it returns default value for the specified type.
the TypeCode that defined the type of the result
value defined by the typecode or type default value if conversion is not supported.
Converts object value into a value defined by specied typecode. If conversion is not possible it returns default value.
the TypeCode that defined the type of the result
the default value
value defined by the typecode or type default value if conversion is not supported.
Gets type code for the value stored in this object.
type code of the object value.
Gets an object hash code which can be used to optimize storing and searching.
an object hash code.
Sets a new value for this object
the new object value.
Gets a string representation of the object.
a string representation of the object.
Generated using TypeDoc
Cross-language implementation of dynamic object what can hold value of any type. The stored value can be converted to different types using variety of accessor methods.
Example
let value1 = new AnyValue("123.456"); value1.getAsInteger(); // Result: 123 value1.getAsString(); // Result: "123.456" value1.getAsFloat(); // Result: 123.456
StringConverter
TypeConverter
BooleanConverter
IntegerConverter
LongConverter
DoubleConverter
FloatConverter
DateTimeConverter
ICloneable