@ NonNull @ Override public MutableArray setData ( List < Object > data ) { synchronized ( lock ) { internalArray . clear ( ) ; for ( Object obj : data ) { internalArray . append ( Fleece . toCBLObject ( obj ) ) ; } return this ; } }
Set an array as a content . Allowed value types are List Date Map Number null String Array Blob and Dictionary . The List and Map must contain only the above types . Setting the new array content will replcace the current data including the existing Array and Dictionary objects .