public abstract class AbstractBooleanList extends AbstractBooleanCollection implements BooleanList
BooleanList interface.| Constructor and Description |
|---|
AbstractBooleanList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(boolean e)
A Type-Specific implementation of add function that delegates to
BooleanList.add(int, boolean) |
void |
add(int index,
java.lang.Boolean element)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(BooleanCollection c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
addAll(BooleanList c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
equals(java.lang.Object o)
Compares if the list are the same.
|
int |
hashCode()
Generates the hashcode based on the values stored in the list.
|
int |
indexOf(boolean e)
The indexOf implementation iterates over all elements and compares them to the search value.
|
int |
indexOf(java.lang.Object o)
Deprecated.
it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
|
BooleanIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
int |
lastIndexOf(boolean e)
The lastIndexOf implementation iterates over all elements and compares them to the search value.
|
int |
lastIndexOf(java.lang.Object o)
Deprecated.
it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
|
BooleanListIterator |
listIterator()
A Type-Specific Iterator of listIterator
|
BooleanListIterator |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
BooleanList |
subList(int fromIndex,
int toIndex)
A Type-Specific List of subList
|
add, addAll, contains, contains, containsAll, containsAny, containsAny, remBoolean, remove, removeAll, retainAll, toBooleanArray, toBooleanArrayclear, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, add, addAll, addAll, addElements, addElements, addElements, contains, extractElements, get, getBoolean, getElements, getElements, remove, remove, removeBoolean, removeElements, set, set, sort, sort, spliterator, unstableSort, unstableSortcontains, containsAll, containsAny, containsAny, remBoolean, removeAll, retainAll, toBooleanArray, toBooleanArrayforEach, forEachpublic boolean add(boolean e)
BooleanList.add(int, boolean)add in interface BooleanCollectionadd in interface BooleanListe - the element to addList.add(Object)@Deprecated
public void add(int index,
java.lang.Boolean element)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.List<java.lang.Boolean>public boolean addAll(BooleanCollection c)
addAll in interface BooleanCollectionaddAll in class AbstractBooleanCollectionc - the elements that wants to be addedpublic boolean addAll(BooleanList c)
addAll in interface BooleanListc - the elements that wants to be added@Deprecated public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<java.lang.Boolean>indexOf in interface BooleanListo - the value that the index is searched for.@Deprecated public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<java.lang.Boolean>lastIndexOf in interface BooleanListo - the value that the index is searched for.public int indexOf(boolean e)
indexOf in interface BooleanListe - the value that the index is searched for.public int lastIndexOf(boolean e)
lastIndexOf in interface BooleanListe - the value that the index is searched for.public boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Boolean>equals in interface java.util.List<java.lang.Boolean>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Boolean>hashCode in interface java.util.List<java.lang.Boolean>hashCode in class java.lang.Objectpublic BooleanList subList(int fromIndex, int toIndex)
BooleanListsubList in interface java.util.List<java.lang.Boolean>subList in interface BooleanListList.subList(int, int)public BooleanIterator iterator()
BooleanCollectioniterator in interface java.lang.Iterable<java.lang.Boolean>iterator in interface java.util.Collection<java.lang.Boolean>iterator in interface java.util.List<java.lang.Boolean>iterator in interface BooleanCollectioniterator in interface BooleanIterableiterator in class AbstractBooleanCollectionCollection.iterator()public BooleanListIterator listIterator()
BooleanListlistIterator in interface java.util.List<java.lang.Boolean>listIterator in interface BooleanListList.listIterator()public BooleanListIterator listIterator(int index)
BooleanListlistIterator in interface java.util.List<java.lang.Boolean>listIterator in interface BooleanListList.listIterator(int)public void size(int size)
BooleanListsize in interface BooleanListsize - the requested amount of elements/room for elements