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.


Nested Class Summary
static interface SafeArray.Procedure<T>
           
 
Method Summary
 void add(int index, T value)
           
 void add(T value)
           
 void clear()
           
 boolean forEach(SafeArray.Procedure<T> procedure)
          Applies the procedure to each value in the list in ascending (front to back) order.
 T get(int index)
           
 int size()
           
 

Method Detail

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.