public class MArray extends MCollection
Constructor and Description |
---|
MArray() |
Modifier and Type | Method and 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) |
getContext, hasMutableChildren, initAsCopyOf, isMutable, isMutated
public void initInSlot(@NonNull MValue mv, @Nullable MCollection parent)
public void initAsCopyOf(@NonNull MArray array, boolean isMutable)
@Nullable public FLArray getBaseArray()
public long count()
@NonNull public MValue get(long index)
public boolean set(long index, Object value)
public boolean insert(long index, Object value)
public boolean append(Object value)
public boolean remove(long start, long num)
public boolean remove(long index)
public boolean clear()
public void encodeTo(@NonNull FLEncoder enc)