MutableArrayObject
public final class MutableArrayObject : ArrayObject, MutableArrayProtocolMutableArrayObject provides access to array data.
- 
                  
                  Initialize a new empty MutableArrayObject. DeclarationSwift public init()
- 
                  
                  Initialize a new MutableArrayObject object with the data. Allowed value types are Array, ArrayObject, Blob, Date, Dictionary, DictionaryObject, NSNull, Number types, and String. The Arrays and Dictionaries must contain only the above types. DeclarationSwift public init(data: Array<Any>)ParametersarrayThe array object. 
- 
                  
                  Initialize a new MutableArray object with data as a JSON string. Throws An error on a failure.DeclarationSwift public init(json: String) throwsParametersjsonThe JSON string with data. 
- 
                  
                  Sets a value at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func setValue(_ value: Any?, at index: Int) -> SelfParametersvalueThe value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets a String object at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func setString(_ value: String?, at index: Int) -> SelfParametersvalueThe String object. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets a Number value at the given index. DeclarationSwift @discardableResult public func setNumber(_ value: NSNumber?, at index: Int) -> SelfParametersvalueThe Number value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets an int value at the given index. DeclarationSwift @discardableResult public func setInt(_ value: Int, at index: Int) -> SelfParametersvalueThe int value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets an int64 value at the given index. DeclarationSwift @discardableResult public func setInt64(_ value: Int64, at index: Int) -> SelfParametersvalueThe int64 value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets a float value at the given index. DeclarationSwift @discardableResult public func setFloat(_ value: Float, at index: Int) -> SelfParametersvalueThe float value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets a double value at the given index. DeclarationSwift @discardableResult public func setDouble(_ value: Double, at index: Int) -> SelfParametersvalueThe double value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets a boolean value at the given index. DeclarationSwift @discardableResult public func setBoolean(_ value: Bool, at index: Int) -> SelfParametersvalueThe boolean value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets a Date object at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func setDate(_ value: Date?, at index: Int) -> SelfParametersvalueThe Date object. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets a Blob object at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func setBlob(_ value: Blob?, at index: Int) -> SelfParametersvalueThe Blob object. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets an ArrayObject object at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func setArray(_ value: ArrayObject?, at index: Int) -> SelfParametersvalueThe ArrayObject object. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Sets a DictionaryObject object at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func setDictionary(_ value: DictionaryObject?, at index: Int) -> SelfParametersvalueThe DictionaryObject object. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Adds a value to the end of the array. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func addValue(_ value: Any?) -> SelfParametersvalueThe value. Return ValueThe self object. 
- 
                  
                  Adds a String object to the end of the array. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func addString(_ value: String?) -> SelfParametersvalueThe String object. Return ValueThe self object. 
- 
                  
                  Adds a Number value to the end of the array. DeclarationSwift @discardableResult public func addNumber(_ value: NSNumber?) -> SelfParametersvalueThe Number value. Return ValueThe self object. 
- 
                  
                  Adds an int value to the end of the array. DeclarationSwift @discardableResult public func addInt(_ value: Int) -> SelfParametersvalueThe int value. Return ValueThe ArrayObject object. 
- 
                  
                  Adds an int64 value to the end of the array. DeclarationSwift @discardableResult public func addInt64(_ value: Int64) -> SelfParametersvalueThe int64 value. Return ValueThe self object. 
- 
                  
                  Adds a float value to the end of the array. DeclarationSwift @discardableResult public func addFloat(_ value: Float) -> SelfParametersvalueThe double value. Return ValueThe self object. 
- 
                  
                  Adds a double value to the end of the array. DeclarationSwift @discardableResult public func addDouble(_ value: Double) -> SelfParametersvalueThe double value. Return ValueThe self object. 
- 
                  
                  Adds a boolean value to the end of the array. DeclarationSwift @discardableResult public func addBoolean(_ value: Bool) -> SelfParametersvalueThe boolean value. Return ValueThe self object. 
- 
                  
                  Adds a Date object to the end of the array. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func addDate(_ value: Date?) -> SelfParametersvalueThe Date object. Return ValueThe self object. 
- 
                  
                  Adds a Blob object to the end of the array. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func addBlob(_ value: Blob?) -> SelfParametersvalueThe Blob object. Return ValueThe self object. 
- 
                  
                  Adds an ArrayObject object to the end of the array. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func addArray(_ value: ArrayObject?) -> SelfParametersvalueThe ArrayObject object. Return ValueThe self object. 
- 
                  
                  Adds a Dictionary object to the end of the array. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func addDictionary(_ value: DictionaryObject?) -> SelfParametersvalueThe Dictionary object. Return ValueThe self object. 
- 
                  
                  Inserts a value at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertValue(_ value: Any?, at index: Int) -> SelfParametersvalueThe value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts a String object at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertString(_ value: String?, at index: Int) -> SelfParametersvalueThe String object. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts a Number value at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertNumber(_ value: NSNumber?, at index: Int) -> SelfParametersvalueThe number value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts an int value at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertInt(_ value: Int, at index: Int) -> SelfParametersvalueThe int value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts an int64 value at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertInt64(_ value: Int64, at index: Int) -> SelfParametersvalueThe int64 value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts a float value at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertFloat(_ value: Float, at index: Int) -> SelfParametersvalueThe float value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts a double value at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertDouble(_ value: Double, at index: Int) -> SelfParametersvalueThe double value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts a boolean value at the given index. DeclarationSwift @discardableResult public func insertBoolean(_ value: Bool, at index: Int) -> SelfParametersvalueThe boolean value. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts a Date object at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertDate(_ value: Date?, at index: Int) -> SelfParametersvalueThe Date object. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts a Blob object at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertBlob(_ value: Blob?, at index: Int) -> SelfParametersvalueThe Blob object. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts an ArrayObject at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertArray(_ value: ArrayObject?, at index: Int) -> SelfParametersvalueThe ArrayObject object. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Inserts a Dictionary object at the given index. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func insertDictionary(_ value: DictionaryObject?, at index: Int) -> SelfParametersvalueThe Dictionary object. indexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Removes the object at the given index. DeclarationSwift @discardableResult public func removeValue(at index: Int) -> SelfParametersindexThe index. This value must not exceed the bounds of the array. Return ValueThe self object. 
- 
                  
                  Set data for the array. Allowed value types are Array, ArrayObject, Blob, Date, Dictionary, DictionaryObject, NSNull, Number types, and String. The Arrays and Dictionaries must contain only the above types. DeclarationSwift @discardableResult public func setData(_ data: Array<Any>) -> SelfParametersarrayThe array. Return ValueThe self object. 
- 
                  
                  Set data with JSON string. Throws An error on a failure.DeclarationSwift @discardableResult public func setJSON(_ json: String) throws -> SelfParametersjsonThe JSON string with data. Return ValueThe self object. 
- 
                  
                  Gets an MutableArrayObject at the given index. Returns nil if the value is not an array. DeclarationSwift public override func array(at index: Int) -> MutableArrayObject?ParametersindexThe index. This value must not exceed the bounds of the array. Return ValueThe ArrayObject object. 
- 
                  
                  Gets a MutableDictionaryObject at the given index. Returns nil if the value is not a dictionary. DeclarationSwift public override func dictionary(at index: Int) -> MutableDictionaryObject?ParametersindexThe index. This value must not exceed the bounds of the array. Return ValueThe MutableDictionaryObject object. 
- 
                  
                  Subscripting access to a MutableFragment object that represents the value at the given index. DeclarationSwift public override subscript(index: Int) -> MutableFragment { get }ParametersindexThe index. If the index value exceeds the bounds of the array, the MutableFragment object will represent a nil value. Return ValueThe Fragment object. 
- 
                  
                  Mutable Objects will throw an exception, when called toJSON DeclarationSwift public override func toJSON() -> String
 MutableArrayObject Class Reference
        MutableArrayObject Class Reference