This project has retired. For details please refer to its
Attic page.
ListGenericArray (Apache Gora 0.2 API)
org.apache.gora.persistency
Class ListGenericArray<T>
java.lang.Object
org.apache.gora.persistency.ListGenericArray<T>
- All Implemented Interfaces:
- Comparable<ListGenericArray<T>>, Iterable<T>, Collection<T>, List<T>, org.apache.avro.generic.GenericArray<T>, org.apache.avro.generic.GenericContainer
public class ListGenericArray<T>
- extends Object
- implements org.apache.avro.generic.GenericArray<T>, Comparable<ListGenericArray<T>>
An ArrayList based implementation of Avro GenericArray.
| Methods inherited from interface org.apache.avro.generic.GenericArray |
reverse |
| Methods inherited from interface java.util.List |
add, addAll, addAll, contains, containsAll, get, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
ListGenericArray
public ListGenericArray(org.apache.avro.Schema schema,
List<T> list)
ListGenericArray
public ListGenericArray(org.apache.avro.Schema schema)
ListGenericArray
public ListGenericArray(int size,
org.apache.avro.Schema schema)
add
public void add(T element)
- Specified by:
add in interface Collection<T>- Specified by:
add in interface List<T>
clear
public void clear()
- Specified by:
clear in interface Collection<T>- Specified by:
clear in interface List<T>
peek
public T peek()
- Specified by:
peek in interface org.apache.avro.generic.GenericArray<T>
size
public long size()
- Specified by:
size in interface Collection<T>- Specified by:
size in interface List<T>
iterator
public Iterator<T> iterator()
- Specified by:
iterator in interface Iterable<T>- Specified by:
iterator in interface Collection<T>- Specified by:
iterator in interface List<T>
getSchema
public org.apache.avro.Schema getSchema()
- Specified by:
getSchema in interface org.apache.avro.generic.GenericContainer
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<T>- Specified by:
hashCode in interface List<T>- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Specified by:
equals in interface Collection<T>- Specified by:
equals in interface List<T>- Overrides:
equals in class Object
compareTo
public int compareTo(ListGenericArray<T> o)
- Specified by:
compareTo in interface Comparable<ListGenericArray<T>>
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.