Class BooleanList
java.lang.Object
com.sparsity.sparksee.gdb.BooleanList
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.BooleanList(boolean[] list) Creates a new instance from a boolean array.BooleanList(Collection<Boolean> col) Creates a new instance from a boolean collection. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
BooleanList
public BooleanList()Constructor.This creates an empty list.
-
BooleanList
Creates a new instance from a boolean collection.- Parameters:
col- Collection to initialize the instance.
-
BooleanList
public BooleanList(boolean[] list) Creates a new instance from a boolean array.- Parameters:
list- Boolean array to initialize the instance.
-
-
Method Details
-
clear
public void clear()Clears the list. -
iterator
Gets a new BooleanListIterator. -
add
public void add(boolean value) Adds a Boolean at the end of the list.- Parameters:
value- [in] Boolean.
-
count
public int count()Number of elements in the list.- Returns:
- Number of elements in the list.
-