MutableArray
MutableArray provides access to array data.
Constructors
Constructs a new empty Array object.
Creates a new MutableArray with content from the passed List. Allowed value types are List, Date, Map, Number, null, String, Array, Blob, and Dictionary. If present, Lists, Maps and Dictionaries may contain only the above types.
Creates a new MutableArray with content from the passed JSON string.
Properties
Functions
Adds an Array object to the end of the array.
Adds a Blob object to the end of the array.
Adds a boolean value to the end of the array.
Adds a Date object to the end of the array.
Adds a Dictionary object to the end of the array.
Adds a double value to the end of the array.
Adds a float value to the end of the array.
Adds an integer value to the end of the array.
Adds a long value to the end of the array.
Adds a Number object to the end of the array.
Adds a String object to the end of the array.
Adds an object to the end of the array.
Subscript access to a Fragment object by index.
Subscripting access to a MutableFragment object that represents the value at the given index.
Gets an Array at the given index. Return null if the value is not an array.
Gets value at the given index as a boolean.
Gets value at the given index as a Date. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns null if the value doesn't exist, is not a string, or is not parsable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds.
Gets a Dictionary at the given index. Return null if the value is not a dictionary.
Gets value at the given index as a double. Integers will be converted to double. The value true
is returned as 1.0, false
as 0.0. Returns 0.0 if the property doesn't exist or does not have a numeric value.
Gets value at the given index as a float. Integers will be converted to float. The value true
is returned as 1.0, false
as 0.0. Returns 0.0 if the value doesn't exist or does not have a numeric value.
Gets value at the given index as a long. Floating point values will be rounded. The value true
is returned as 1, false
as 0. Returns 0 if the value doesn't exist or does not have a numeric value.
Inserts an Array object at the given index.
Inserts a Blob object at the given index.
Inserts a boolean value at the given index.
Inserts a Date object at the given index.
Inserts a Dictionary object at the given index.
Inserts a double value at the given index.
Inserts a float value at the given index.
Inserts an integer value at the given index.
Inserts a long value at the given index.
Inserts a Number object at the given index.
Inserts a String object at the given index.
Inserts an object at the given index.
Removes the object at the given index.
Sets an Array object at the given index.
Sets a Blob object at the given index.
Sets a boolean value at the given index.
Populate an array with content from a List. Allowed value types are List, Date, Map, Number, null, String, Array, Blob, and Dictionary. If present, Lists, Maps and Dictionaries may contain only the above types. Setting the array content will replace the current data including any existing Array and Dictionary objects.
Sets a Date object at the given index.
Sets a Dictionary object at the given index.
Sets a double value at the given index.
Sets a float value at the given index.
Sets an integer value at the given index.
Populate an array with content from a JSON string. Allowed value types are List, Date, Map, Number, null, String, Array, Blob, and Dictionary. If present, Lists, Maps and Dictionaries may contain only the above types. Setting the array content will replace the current data including any existing Array and Dictionary objects.
Sets an integer value at the given index.
Sets an NSNumber object at the given index.
Sets a String object at the given index.
Set an object at the given index.
Return a mutable copy of the array