Package org.apache.avro.generic
Class PrimitivesArrays.BooleanArray
java.lang.Object
java.util.AbstractCollection<Boolean>
java.util.AbstractList<Boolean>
org.apache.avro.generic.GenericData.AbstractArray<Boolean>
org.apache.avro.generic.PrimitivesArrays.BooleanArray
- All Implemented Interfaces:
Comparable<GenericArray<Boolean>>,Iterable<Boolean>,Collection<Boolean>,List<Boolean>,GenericArray<Boolean>,GenericContainer
- Enclosing class:
PrimitivesArrays
-
Field Summary
Fields inherited from class org.apache.avro.generic.GenericData.AbstractArray
sizeFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionBooleanArray(int capacity, Schema schema) BooleanArray(Schema schema, Collection<Boolean> c) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(boolean o) voidadd(int location, boolean o) voidbooleanvoidclear()get(int i) booleangetBoolean(int i) Direct primitive int access.peek()The current content of the location whereList.add(Object)would next store an element, if any.remove(int i) booleanset(int i, boolean o) protected voidswap(int index1, int index2) Methods inherited from class org.apache.avro.generic.GenericData.AbstractArray
compareTo, equals, getSchema, hashCode, iterator, reset, reverse, sizeMethods inherited from class java.util.AbstractList
addAll, indexOf, lastIndexOf, listIterator, listIterator, removeRange, 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
pruneMethods inherited from interface java.util.List
addAll, addAll, contains, containsAll, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
BooleanArray
-
BooleanArray
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Boolean>- Specified by:
clearin interfaceList<Boolean>- Overrides:
clearin classAbstractList<Boolean>
-
get
-
getBoolean
public boolean getBoolean(int i) Direct primitive int access.- Parameters:
i- : index.- Returns:
- value at index.
-
add
- Specified by:
addin interfaceCollection<Boolean>- Specified by:
addin interfaceList<Boolean>- Overrides:
addin classAbstractList<Boolean>
-
add
public boolean add(boolean o) -
add
-
add
public void add(int location, boolean o) -
set
-
set
public boolean set(int i, boolean o) -
remove
-
peek
Description copied from interface:GenericArrayThe current content of the location whereList.add(Object)would next store an element, if any. This permits reuse of arrays and their elements without allocating new objects. -
swap
protected void swap(int index1, int index2) - Specified by:
swapin classGenericData.AbstractArray<Boolean>
-