| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
E - the component type of the Array to buildpublic interface ArrayBuilder<E>
A builder of ConstArrays.  Each type of ConstArray has a nested class that
 implements this interface, e.g. ConstArray.Builder.
| Method Summary | |
|---|---|
|  void | append(E element)Appends an element to the Array | 
|  void | append(E[] elements)Appends all elements from a Java array to the Array | 
|  void | append(E[] elements,
       int off,
       int len)Appends a range of elements from a Java array to the Array | 
|  int | length()Gets the current number of elements in the Array | 
|  ConstArray<E> | snapshot()Create a snapshot of the current content. | 
| Method Detail | 
|---|
void append(E element)
element - the element to appendvoid append(E[] elements)
elements - the element to appendvoid append(E[] elements,
            int off,
            int len)
elements - the source arrayoff - the index of the first element to appendlen - the number of elements to appendint length()
ConstArray<E> snapshot()
ConstArray containing the elements written
         so far| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||