public static interface HierarchicalArrayUpdater.HierarchicalUpdate extends ArrayUpdater.Update
| Modifier and Type | Method and Description |
|---|---|
void |
clear(int start,
int length,
String parentKey)
Clears
length elements in array from the start
position. |
void |
commit()
Commits enqueued function calls added via
enqueue(String, Serializable...). |
void |
commit(int updateId,
String parentKey,
int levelSize)
Commits changes for the given
updateId and parent key. |
void |
enqueue(String name,
Serializable... arguments)
Enqueue function call with the given arguments.
|
void |
set(int start,
List<elemental.json.JsonValue> items,
String parentKey)
Sets the
items at the start position. |
clear, commit, setvoid clear(int start,
int length,
String parentKey)
length elements in array from the start
position.start - the start indexlength - the number of elements to clearparentKey - Parent item key that cleared range affectsvoid set(int start,
List<elemental.json.JsonValue> items,
String parentKey)
items at the start position.start - the start indexitems - the items to setparentKey - Parent item key where given items belongs tovoid commit()
enqueue(String, Serializable...).void enqueue(String name, Serializable... arguments)
name - the name of the function to call, may contain dots to
indicate a function on a property.arguments - the arguments to pass to the function. Must be of a type
supported by the communication mechanism, as defined by
JsonCodecJsonCodec for supported argument typesvoid commit(int updateId,
String parentKey,
int levelSize)
updateId and parent key.updateId - the update identifier of the commit for the target
parentKeyparentKey - target parent keylevelSize - Total number of direct child items for the given parent
keyCopyright © 2025. All rights reserved.