Class MArray
- java.lang.Object
-
- com.couchbase.lite.internal.fleece.MCollection
-
- com.couchbase.lite.internal.fleece.MArray
-
- All Implemented Interfaces:
Encodable
public class MArray extends MCollection
-
-
Constructor Summary
Constructors Constructor Description MArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappend(java.lang.Object value)booleanclear()longcount()voidencodeTo(FLEncoder enc)MValueget(long index)Returns a reference to the MValue of the item at the given index.FLArraygetBaseArray()voidinitAsCopyOf(MArray array, boolean isMutable)voidinitInSlot(MValue mv, MCollection parent)booleaninsert(long index, java.lang.Object value)booleanremove(long index)booleanremove(long start, long num)booleanset(long index, java.lang.Object value)-
Methods inherited from class com.couchbase.lite.internal.fleece.MCollection
getContext, hasMutableChildren, initAsCopyOf, isMutable, isMutated
-
-
-
-
Method Detail
-
initInSlot
public void initInSlot(@NonNull MValue mv, @Nullable MCollection parent)
-
initAsCopyOf
public void initAsCopyOf(@NonNull MArray array, boolean isMutable)
-
getBaseArray
@Nullable public FLArray getBaseArray()
-
count
public long count()
-
get
@NonNull public MValue get(long index)
Returns a reference to the MValue of the item at the given index. If the index is out of range, returns an empty MValue.
-
set
public boolean set(long index, java.lang.Object value)
-
insert
public boolean insert(long index, java.lang.Object value)
-
append
public boolean append(java.lang.Object value)
-
remove
public boolean remove(long start, long num)
-
remove
public boolean remove(long index)
-
clear
public boolean clear()
-
encodeTo
public void encodeTo(@NonNull FLEncoder enc)
-
-