Class bool_vector
- All Implemented Interfaces:
Iterable<Boolean>,Collection<Boolean>,List<Boolean>,RandomAccess,SequencedCollection<Boolean>
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionbool_vector(boolean[] initialElements) bool_vector(int count, boolean value) protectedbool_vector(long cPtr, boolean cMemoryOwn) bool_vector(bool_vector other) bool_vector(Iterable<Boolean> initialElements) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanintcapacity()voidclear()voiddelete()get(int index) protected static longgetCPtr(bool_vector obj) booleanisEmpty()remove(int index) protected voidremoveRange(int fromIndex, int toIndex) voidreserve(int n) intsize()protected static longswigRelease(bool_vector obj) Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, 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 java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
bool_vector
protected bool_vector(long cPtr, boolean cMemoryOwn) -
bool_vector
public bool_vector(boolean[] initialElements) -
bool_vector
-
bool_vector
public bool_vector() -
bool_vector
-
bool_vector
public bool_vector(int count, boolean value)
-
-
Method Details
-
getCPtr
-
swigRelease
-
delete
public void delete() -
get
-
set
-
add
- Specified by:
addin interfaceCollection<Boolean>- Specified by:
addin interfaceList<Boolean>- Overrides:
addin classAbstractList<Boolean>
-
add
-
remove
-
removeRange
protected void removeRange(int fromIndex, int toIndex) - Overrides:
removeRangein classAbstractList<Boolean>
-
size
public int size()- Specified by:
sizein interfaceCollection<Boolean>- Specified by:
sizein interfaceList<Boolean>- Specified by:
sizein classAbstractCollection<Boolean>
-
capacity
public int capacity() -
reserve
public void reserve(int n) -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Boolean>- Specified by:
isEmptyin interfaceList<Boolean>- Overrides:
isEmptyin classAbstractCollection<Boolean>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Boolean>- Specified by:
clearin interfaceList<Boolean>- Overrides:
clearin classAbstractList<Boolean>
-