Package org.itk.simple
Class VectorBool
- All Implemented Interfaces:
Iterable<Boolean>
,Collection<Boolean>
,List<Boolean>
,RandomAccess
,SequencedCollection<Boolean>
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsModifierConstructorDescriptionVectorBool
(boolean[] initialElements) VectorBool
(int count, boolean value) protected
VectorBool
(long cPtr, boolean cMemoryOwn) VectorBool
(Iterable<Boolean> initialElements) VectorBool
(VectorBool other) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
long
capacity()
void
clear()
void
delete()
protected void
finalize()
get
(int index) protected static long
getCPtr
(VectorBool obj) boolean
isEmpty()
remove
(int index) protected void
removeRange
(int fromIndex, int toIndex) void
reserve
(long n) int
size()
protected static long
swigRelease
(VectorBool obj) Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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
-
VectorBool
protected VectorBool(long cPtr, boolean cMemoryOwn) -
VectorBool
public VectorBool(boolean[] initialElements) -
VectorBool
-
VectorBool
public VectorBool() -
VectorBool
-
VectorBool
public VectorBool(int count, boolean value)
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize() -
delete
public void delete() -
get
-
set
-
add
- Specified by:
add
in interfaceCollection<Boolean>
- Specified by:
add
in interfaceList<Boolean>
- Overrides:
add
in classAbstractList<Boolean>
-
add
-
remove
-
removeRange
protected void removeRange(int fromIndex, int toIndex) - Overrides:
removeRange
in classAbstractList<Boolean>
-
size
public int size()- Specified by:
size
in interfaceCollection<Boolean>
- Specified by:
size
in interfaceList<Boolean>
- Specified by:
size
in classAbstractCollection<Boolean>
-
capacity
public long capacity() -
reserve
public void reserve(long n) -
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<Boolean>
- Specified by:
isEmpty
in interfaceList<Boolean>
- Overrides:
isEmpty
in classAbstractCollection<Boolean>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<Boolean>
- Specified by:
clear
in interfaceList<Boolean>
- Overrides:
clear
in classAbstractList<Boolean>
-