public class CopyOnUpdateSafeArray<T> extends Object implements ISafeArray<T>
ISafeArray
Constructor and Description |
---|
CopyOnUpdateSafeArray() |
CopyOnUpdateSafeArray(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element)
Inserts the specified element at the specified position in this list.
|
void |
clear()
Clears the array
|
T |
get(int index)
Returns the element at the specified position in this list.
|
public CopyOnUpdateSafeArray()
public CopyOnUpdateSafeArray(int initialCapacity)
public void add(int index, T element)
ISafeArray
add
in interface ISafeArray<T>
index
- index at which the specified element is to be inserted.element
- element to be inserted.public T get(int index)
ISafeArray
get
in interface ISafeArray<T>
index
- index of element to return.public void clear()
ISafeArray
clear
in interface ISafeArray<T>
Copyright © GigaSpaces.