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
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(GenericArray<T> that) booleanThe schema of this instance.inthashCode()iterator()voidreset()reset size counter of array to zerovoidreverse()Reverses the order of the elements in this array.intsize()protected abstract voidswap(int index1, int index2) Methods inherited from class java.util.AbstractList
add, add, addAll, clear, get, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.apache.avro.generic.GenericArray
peek, pruneMethods 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:GenericContainerThe schema of this instance.- Specified by:
getSchemain interfaceGenericContainer
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
reset
public void reset()Description copied from interface:GenericArrayreset size counter of array to zero- Specified by:
resetin interfaceGenericArray<T>
-
compareTo
- Specified by:
compareToin interfaceComparable<T>
-
equals
- Specified by:
equalsin interfaceCollection<T>- Specified by:
equalsin interfaceList<T>- Overrides:
equalsin classAbstractList<T>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T>- Specified by:
hashCodein interfaceList<T>- Overrides:
hashCodein classAbstractList<T>
-
iterator
-
reverse
public void reverse()Description copied from interface:GenericArrayReverses the order of the elements in this array.- Specified by:
reversein interfaceGenericArray<T>
-
swap
protected abstract void swap(int index1, int index2)
-