|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GenericArray<T>
An array of objects.
Method Summary | |
---|---|
void |
add(T element)
Add an element to this array. |
void |
clear()
Reset the size of the array to zero. |
T |
peek()
The current content of the location where add(Object) would next
store an element, if any. |
long |
size()
The number of elements contained in this array. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface org.apache.avro.generic.GenericContainer |
---|
getSchema |
Method Detail |
---|
long size()
void clear()
void add(T element)
T peek()
add(Object)
would next
store an element, if any. This permits reuse of arrays and their elements
without allocating new objects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |