Package org.apache.avro.generic
Class GenericData.AbstractArray<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
org.apache.avro.generic.GenericData.AbstractArray<T>
- All Implemented Interfaces:
Comparable<GenericArray<T>>
,Iterable<T>
,Collection<T>
,List<T>
,GenericArray<T>
,GenericContainer
- Direct Known Subclasses:
GenericData.Array
,PrimitivesArrays.BooleanArray
,PrimitivesArrays.DoubleArray
,PrimitivesArrays.FloatArray
,PrimitivesArrays.IntArray
,PrimitivesArrays.LongArray
- Enclosing class:
GenericData
public abstract static class GenericData.AbstractArray<T>
extends AbstractList<T>
implements GenericArray<T>, Comparable<GenericArray<T>>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(GenericArray<T> that) boolean
The schema of this instance.int
hashCode()
iterator()
void
reset()
reset size counter of array to zerovoid
reverse()
Reverses the order of the elements in this array.int
size()
protected abstract void
swap
(int index1, int index2) Methods inherited from class java.util.AbstractList
add, add, addAll, clear, get, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface org.apache.avro.generic.GenericArray
peek, prune
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
Field Details
-
size
protected int size
-
-
Constructor Details
-
AbstractArray
-
-
Method Details
-
getSchema
Description copied from interface:GenericContainer
The schema of this instance.- Specified by:
getSchema
in interfaceGenericContainer
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
reset
public void reset()Description copied from interface:GenericArray
reset size counter of array to zero- Specified by:
reset
in interfaceGenericArray<T>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-
equals
- Specified by:
equals
in interfaceCollection<T>
- Specified by:
equals
in interfaceList<T>
- Overrides:
equals
in classAbstractList<T>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<T>
- Specified by:
hashCode
in interfaceList<T>
- Overrides:
hashCode
in classAbstractList<T>
-
iterator
-
reverse
public void reverse()Description copied from interface:GenericArray
Reverses the order of the elements in this array.- Specified by:
reverse
in interfaceGenericArray<T>
-
swap
protected abstract void swap(int index1, int index2)
-