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,
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.
Clears this list.
Checks if the list contains the given element.
true
if this list contains an element that is equal the to given element, false
otherwise.
Checks if the list contains all of the given elements.
elements to be checked for presence in this list.
true
if this list contains all of the given elements, false
otherwise.
Destroys this object cluster-wide. Clears all resources taken for this object.
Retrieves the element at given location.
index of the element to return.
the element at that position.
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 position of first occurrence of the given element in this list.
element to search for
the index of first occurrence of given element or -1
if the list does not contain given element.
Checks if this list is empty.
true
if this list contains no elements, false
otherwise.
Returns position of the last occurrence of the given element in this list.
Removes the given element from this list.
element to be removed
true
if this list has changed as a result of this operation, false
otherwise.
Removes given elements from the list.
elements to be removed
true
if this list has changed as a result of this operation, false
otherwise.
Removes the element at the given index.
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.
Removes all elements from this list except the ones contained in the given 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.
Generated using TypeDoc
Concurrent and distributed list.