Appends the specified element to the end of the list.
element to be added
true
if this list has changed as a result of this operation, false
otherwise.
Appends all elements in the specified array to the end of this list, keeping the order of the array.
array to be appended
true
if this list has changed as a result of this operation, false
otherwise.
Inserts all elements in the specified array at specified index, keeping the order of the array. Shifts the subsequent elements to the right.
position at which the array's elements should be inserted
array to be inserted
true
if this list has changed as a result of this operation, false
otherwise.
Inserts the specified element at the specified index. Shifts the subsequent elements to the right.
position at which the element should be inserted
element to be inserted
Adds an item listener for this list. Listener will be invoked whenever an item is added to or removed from this list.
object with listener functions
true
if updated item should be included in the event.
registration ID of the listener.
Removes all of the elements from this list.
Checks if the list contains the given element.
true
if this list contains the specified element, false
otherwise.
Checks if the list contains all of the elements of the specified array.
elements to be checked for presence in this list.
true
if this list contains all of the elements of the specified array, false
otherwise.
Destroys this object cluster-wide. Clears all resources taken for this object.
Returns the element at the specified position in this list.
index of the element to return.
Returns the unique name of this object.
Returns the key of the partition that this DistributedObject is assigned to.
For a partitioned data structure, the returned value will not be null
,
but otherwise undefined
.
Returns the service name for this object.
Returns the index of the first occurrence of the specified element in this list, or -1
if this list does not contain
the element.
element to search for
Checks if this list is empty.
true
if this list contains no elements, false
otherwise.
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
Removes the first occurrence of the specified element from this list, if it is present.
element to be removed
true
if this list has changed as a result of this operation, false
otherwise.
Removes from this list all of its elements that are contained in the specified array.
elements to be removed
true
if this list has changed as a result of this operation, false
otherwise.
Removes the element at the specified position in this list.
index of the element to be removed.
the removed element.
Removes an ItemListener from this list.
registration ID of the listener to be removed.
true
if the item listener was successfully removed, false
otherwise.
Retains only the elements in this list that are contained in the specified array.
elements to retain
true
if this list has changed as a result of this operation, false
otherwise.
Replaces the element at the specified position in this list with the specified element.
position of the element to be replaced
replacement element
previous element at the given index.
Returns the number of elements in this list.
Returns a view of this list that contains elements between index numbers from start
(inclusive) to end
(exclusive)
start of the view
end of the view
a view of the list
Returns an array that contains all elements of this list in proper sequence (from first to last element).
Generated using TypeDoc
Concurrent and distributed list.
Methods that require serialization/deserialization may throw RangeError, e.g when there is no suitable serializer for a certain type.