org.apache.avro.generic
Interface GenericArray<T>

All Superinterfaces:
Collection<T>, GenericContainer, Iterable<T>, List<T>
All Known Implementing Classes:
GenericData.Array

public interface GenericArray<T>
extends List<T>, GenericContainer

Array that permits reuse of contained elements.


Method Summary
 T peek()
          The current content of the location where List.add(Object) would next store an element, if any.
 void reverse()
          Reverses the order of the elements in this array.
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from interface org.apache.avro.generic.GenericContainer
getSchema
 

Method Detail

peek

T peek()
The current content of the location where List.add(Object) would next store an element, if any. This permits reuse of arrays and their elements without allocating new objects.


reverse

void reverse()
Reverses the order of the elements in this array.



Copyright © 2010 The Apache Software Foundation