Class CopyOnUpdateSafeArray<T>
java.lang.Object
com.gigaspaces.internal.utils.collections.CopyOnUpdateSafeArray<T>
- All Implemented Interfaces:
ISafeArray<T>
Copy on update implementation of
ISafeArray- Since:
- 7.0
- Author:
- eitany
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CopyOnUpdateSafeArray
public CopyOnUpdateSafeArray() -
CopyOnUpdateSafeArray
public CopyOnUpdateSafeArray(int initialCapacity)
-
-
Method Details
-
add
Description copied from interface:ISafeArrayInserts the specified element at the specified position in this list.- Specified by:
addin interfaceISafeArray<T>- Parameters:
index- index at which the specified element is to be inserted.element- element to be inserted.
-
get
Description copied from interface:ISafeArrayReturns the element at the specified position in this list.- Specified by:
getin interfaceISafeArray<T>- Parameters:
index- index of element to return.- Returns:
- the element at the specified position in this list.
-
clear
public void clear()Description copied from interface:ISafeArrayClears the array- Specified by:
clearin interfaceISafeArray<T>
-