Package com.j_spaces.kernel
Interface ISafeArray<T>
- All Known Implementing Classes:
CopyOnUpdateSafeArray,SafeArray
public interface ISafeArray<T>
Safe use "array", to use when
ArrayIndexOutOfBoundsException might accord. Notice: This
implementation is not Thread safe.- Since:
- 7.0
- Author:
- eitany
-
Method Summary
-
Method Details
-
get
Returns the element at the specified position in this list.- Parameters:
index- index of element to return.- Returns:
- the element at the specified position in this list.
-
add
Inserts the specified element at the specified position in this list.- Parameters:
index- index at which the specified element is to be inserted.element- element to be inserted.
-
clear
void clear()Clears the array
-