org.elasticsearch.common.collect
Interface SafeArray<T>
- All Known Implementing Classes:
- ConcurrentSafeArray
public interface SafeArray<T>
An array that is safe in terms of size.
get
T get(int index)
size
int size()
add
void add(T value)
add
void add(int index,
T value)
clear
void clear()
forEach
boolean forEach(SafeArray.Procedure<T> procedure)
- Applies the procedure to each value in the list in ascending
(front to back) order.
- Parameters:
procedure
- a Procedure
value
- Returns:
- true if the procedure did not terminate prematurely.