ArrayObject
public class ArrayObject: ArrayProtocol, Equatable, Hashable, SequenceArrayObject provides readonly access to array data.
- 
                  
                  Gets a number of the items in the array. DeclarationSwift public var count: Int
- 
                  
                  Gets the value at the given index. The value types are Blob, ArrayObject, DictionaryObject, Number, or String based on the underlying data type. DeclarationSwift public func value(at index: Int) -> Any?ParametersindexThe index. Return ValueThe value located at the index. 
- 
                  
                  Gets the value at the given index as a string. Returns nil if the value doesn’t exist, or its value is not a string DeclarationSwift public func string(at index: Int) -> String?ParametersindexThe index. Return ValueThe String object. 
- 
                  
                  Gets value at the given index as a Number value. DeclarationSwift public func number(at index: Int) -> NSNumber?ParametersindexThe index. Return ValueThe number value located at the index. 
- 
                  
                  Gets value at the given index as an int value. Floating point values will be rounded. The value trueis returned as 1,falseas 0. Returns 0 if the value doesn’t exist or does not have a numeric value.DeclarationSwift public func int(at index: Int) -> IntParametersindexThe index. Return ValueThe int value located at the index. 
- 
                  
                  Gets value at the given index as an int64 value. Floating point values will be rounded. The value trueis returned as 1,falseas 0. Returns 0 if the value doesn’t exist or does not have a numeric value.DeclarationSwift public func int64(at index: Int) -> Int64ParametersindexThe index. Return ValueThe int64 value located at the index. 
- 
                  
                  Gets the value at the given index as a float value. Integers will be converted to float. The value trueis returned as 1.0,falseas 0.0. / Returns 0.0 if the value doesn’t exist or does not have a numeric value.DeclarationSwift public func float(at index: Int) -> FloatParametersindexThe index. Return ValueThe Float value located at the index. 
- 
                  
                  Gets the value at the given index as a double value. Integers will be converted to double. The value trueis returned as 1.0,falseas 0.0. Returns 0.0 if the property doesn’t exist or does not have a numeric value.DeclarationSwift public func double(at index: Int) -> DoubleParametersindexThe index. Return ValueThe Double value located at the index. 
- 
                  
                  Gets the value at the given index as a boolean value. Returns true if the value exists, and is either trueor a nonzero number.DeclarationSwift public func boolean(at index: Int) -> BoolParametersindexThe index. Return ValueThe Bool value located at the index. 
- 
                  
                  Gets value at the given index as an 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 nil if the value doesn’t exist, is not a string, or is not parseable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds. DeclarationSwift public func date(at index: Int) -> Date?ParametersindexThe index. Return ValueThe Date value at the given index. 
- 
                  
                  Get the Blob value at the given index. Returns nil if the value doesn’t exist, or its value is not a blob. DeclarationSwift public func blob(at index: Int) -> Blob?ParametersindexThe index. Return ValueThe Blob value located at the index. 
- 
                  
                  Gets the value at the given index as a ArrayObject value, which is a mapping object of an array value. Returns nil if the value doesn’t exists, or its value is not an array. DeclarationSwift public func array(at index: Int) -> ArrayObject?ParametersindexThe index. Return ValueThe ArrayObject at the given index. 
- 
                  
                  Get the value at the given index as a DictionaryObject value, which is a mapping object of a dictionary value. Returns nil if the value doesn’t exists, or its value is not a dictionary. DeclarationSwift public func dictionary(at index: Int) -> DictionaryObject?ParametersindexThe index. Return ValueThe DictionaryObject 
- 
                  
                  Gets content of the current object as an Array. The value types of the values contained in the returned Array object are Array, Blob, Dictionary, Number types, NSNull, and String. DeclarationSwift public func toArray() -> Array<Any>Return ValueThe Array representing the content of the current object. 
- 
                  
                  Returns a mutable copy of the array object. DeclarationSwift public func toMutable() -> MutableArrayObjectReturn ValueThe MutableDocument object. 
- 
                  
                  Gets an iterator over items in the array. DeclarationSwift public func makeIterator() -> AnyIterator<Any>Return ValueThe array item iterator. 
- 
                  
                  Subscript access to a Fragment object by index DeclarationSwift public subscript(index: Int) -> FragmentParametersindexThe Index. 
- 
                  
                  Equal to operator for comparing two Array objects. DeclarationSwift public static func == (array1: ArrayObject, array2: ArrayObject) -> Bool
 ArrayObject Class Reference
        ArrayObject Class Reference