org.apache.avro.generic
Class GenericData.Array<T>
java.lang.Object
   java.util.AbstractCollection<E>
java.util.AbstractCollection<E>
       java.util.AbstractList<T>
java.util.AbstractList<T>
           org.apache.avro.generic.GenericData.Array<T>
org.apache.avro.generic.GenericData.Array<T>
- All Implemented Interfaces: 
- Comparable<GenericArray<T>>, Iterable<T>, Collection<T>, List<T>, GenericArray<T>, GenericContainer
- Enclosing class:
- GenericData
- public static class GenericData.Array<T> 
- extends AbstractList<T>- implements GenericArray<T>, Comparable<GenericArray<T>>
Default implementation of an array.
 
 
 
 
 
 
 
| Methods inherited from interface java.util.List | 
| add, addAll, addAll, contains, containsAll, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray | 
 
GenericData.Array
public GenericData.Array(int capacity,
                         Schema schema)
getSchema
public Schema getSchema()
- Description copied from interface: GenericContainer
- The schema of this instance.
 
- 
- Specified by:
- getSchemain interface- GenericContainer
 
- 
 
size
public int size()
- 
- Specified by:
- sizein interface- Collection<T>
- Specified by:
- sizein interface- List<T>
- Specified by:
- sizein class- AbstractCollection<T>
 
- 
 
clear
public void clear()
- 
- Specified by:
- clearin interface- Collection<T>
- Specified by:
- clearin interface- List<T>
- Overrides:
- clearin class- AbstractList<T>
 
- 
 
iterator
public Iterator<T> iterator()
- 
- Specified by:
- iteratorin interface- Iterable<T>
- Specified by:
- iteratorin interface- Collection<T>
- Specified by:
- iteratorin interface- List<T>
- Overrides:
- iteratorin class- AbstractList<T>
 
- 
 
get
public T get(int i)
- 
- Specified by:
- getin interface- List<T>
- Specified by:
- getin class- AbstractList<T>
 
- 
 
add
public boolean add(T o)
- 
- Specified by:
- addin interface- Collection<T>
- Specified by:
- addin interface- List<T>
- Overrides:
- addin class- AbstractList<T>
 
- 
 
peek
public T peek()
- Description copied from interface: GenericArray
- 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.
 
- 
- Specified by:
- peekin interface- GenericArray<T>
 
- 
 
hashCode
public int hashCode()
- 
- Specified by:
- hashCodein interface- Collection<T>
- Specified by:
- hashCodein interface- List<T>
- Overrides:
- hashCodein class- AbstractList<T>
 
- 
 
equals
public boolean equals(Object o)
- 
- Specified by:
- equalsin interface- Collection<T>
- Specified by:
- equalsin interface- List<T>
- Overrides:
- equalsin class- AbstractList<T>
 
- 
 
compareTo
public int compareTo(GenericArray<T> that)
- 
- Specified by:
- compareToin interface- Comparable<GenericArray<T>>
 
- 
 
reverse
public void reverse()
- Description copied from interface: GenericArray
- Reverses the order of the elements in this array.
 
- 
- Specified by:
- reversein interface- GenericArray<T>
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- AbstractCollection<T>
 
- 
 
Copyright © 2010 The Apache Software Foundation