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 boolean
append(Object value)
boolean
clear()
long
count()
void
encodeTo(FLEncoder enc)
MValue
get(long index)
Returns a reference to the MValue of the item at the given index.FLArray
getBaseArray()
void
initAsCopyOf(MArray array, boolean isMutable)
void
initInSlot(MValue mv, MCollection parent)
boolean
insert(long index, Object value)
boolean
remove(long index)
boolean
remove(long start, long num)
boolean
set(long index, 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, Object value)
-
insert
public boolean insert(long index, Object value)
-
append
public boolean append(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)
-
-