BigList<java.lang.Boolean>, BooleanBigList, BooleanCollection, BooleanIterable, BooleanStack, Size64, Stack<java.lang.Boolean>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<BigList<? extends java.lang.Boolean>>, java.lang.Iterable<java.lang.Boolean>, java.util.Collection<java.lang.Boolean>public static class BooleanBigLists.Singleton extends AbstractBooleanBigList implements java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractBooleanBigList.BooleanSubList| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addAll(long i,
BooleanBigList c) |
Inserts all of the elements in the specified type-specific big list into this
type-specific big list at the specified position (optional operation).
|
boolean |
addAll(long i,
BooleanCollection c) |
Inserts all of the elements in the specified type-specific collection into
this type-specific big list at the specified position (optional operation).
|
boolean |
addAll(long i,
java.util.Collection<? extends java.lang.Boolean> c) |
Adds all of the elements in the specified collection to this list (optional
operation).
|
boolean |
addAll(BooleanBigList c) |
Appends all of the elements in the specified type-specific big list to the
end of this type-specific big list (optional operation).
|
boolean |
addAll(BooleanCollection c) |
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Boolean> c) |
|
void |
clear() |
|
java.lang.Object |
clone() |
|
boolean |
contains(boolean k) |
Returns true if this list contains the specified element.
|
boolean |
getBoolean(long i) |
Returns the element at the specified position.
|
BooleanBigListIterator |
listIterator() |
Returns a type-specific big-list iterator on this type-specific big list.
|
BooleanBigListIterator |
listIterator(long i) |
Returns a type-specific list iterator on this type-specific big list starting
at a given index.
|
boolean |
rem(boolean k) |
Removes a single instance of the specified element from this collection, if
it is present (optional operation).
|
boolean |
removeAll(BooleanCollection c) |
Remove from this collection all elements in the given type-specific
collection.
|
boolean |
removeAll(java.util.Collection<?> c) |
|
boolean |
removeBoolean(long i) |
Removes the element at the specified position.
|
boolean |
retainAll(BooleanCollection c) |
Retains in this collection only elements from the given type-specific
collection.
|
boolean |
retainAll(java.util.Collection<?> c) |
|
long |
size64() |
Returns the size of this data structure as a long.
|
BooleanBigList |
subList(long from,
long to) |
Returns a type-specific view of the portion of this type-specific big list
from the index
from, inclusive, to the index to, exclusive. |
boolean[] |
toBooleanArray() |
Returns a primitive type array containing the items of this collection.
|
add, add, add, addElements, addElements, compareTo, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, peek, peekBoolean, pop, popBoolean, push, push, remove, removeElements, set, set, size, size, top, topBoolean, toStringadd, contains, containsAll, remove, toArray, toBooleanArrayadd, contains, containsAll, remove, toArray, toBooleanArrayforEach, forEachpublic boolean getBoolean(long i)
BooleanBigListgetBoolean in interface BooleanBigListBigList.get(long)public boolean rem(boolean k)
AbstractBooleanBigList
This implementation delegates to indexOf().
rem in interface BooleanCollectionrem in class AbstractBooleanBigListCollection.remove(Object)public boolean removeBoolean(long i)
AbstractBooleanBigList
This implementation always throws an UnsupportedOperationException.
removeBoolean in interface BooleanBigListremoveBoolean in class AbstractBooleanBigListBigList.remove(long)public boolean contains(boolean k)
AbstractBooleanBigList
This implementation delegates to indexOf().
contains in interface BooleanCollectioncontains in class AbstractBooleanBigListCollection.contains(Object)public boolean[] toBooleanArray()
BooleanCollectiontoBooleanArray in interface BooleanCollectiontoBooleanArray in class AbstractBooleanCollectionCollection.toArray()public BooleanBigListIterator listIterator()
AbstractBooleanBigList
Note that this specification strengthens the one given in
BigList.listIterator().
This implementation delegates to listIterator(0).
listIterator in interface BigList<java.lang.Boolean>listIterator in interface BooleanBigListlistIterator in class AbstractBooleanBigListBigList.listIterator()public BooleanBigListIterator listIterator(long i)
AbstractBooleanBigList
Note that this specification strengthens the one given in
BigList.listIterator(long).
This implementation is based on the random-access methods.
listIterator in interface BigList<java.lang.Boolean>listIterator in interface BooleanBigListlistIterator in class AbstractBooleanBigListi - index of first element to be returned from the big-list iterator.BigList.listIterator(long)public BooleanBigList subList(long from, long to)
BooleanBigListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in
BigList.subList(long,long).
subList in interface BigList<java.lang.Boolean>subList in interface BooleanBigListsubList in class AbstractBooleanBigListfrom - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)public boolean addAll(long i,
java.util.Collection<? extends java.lang.Boolean> c)
AbstractBooleanBigListaddAll in interface BigList<java.lang.Boolean>addAll in class AbstractBooleanBigListi - index at which to insert the first element from the specified collection.c - collection containing elements to be added to this big list.true if this big list changed as a result of the callList.addAll(int, Collection)public boolean addAll(java.util.Collection<? extends java.lang.Boolean> c)
AbstractBooleanBigList
This implementation delegates to the type-specific version of
BigList.addAll(long, Collection).
addAll in interface java.util.Collection<java.lang.Boolean>addAll in class AbstractBooleanBigListpublic boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Boolean>removeAll in class java.util.AbstractCollection<java.lang.Boolean>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Boolean>retainAll in class java.util.AbstractCollection<java.lang.Boolean>public boolean addAll(BooleanBigList c)
AbstractBooleanBigList
This implementation delegates to the type-specific list version of
AbstractBooleanBigList.addAll(long, Collection).
addAll in interface BooleanBigListaddAll in class AbstractBooleanBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
BooleanBigList c)
AbstractBooleanBigList
This implementation delegates to the type-specific version of
AbstractBooleanBigList.addAll(long, Collection).
addAll in interface BooleanBigListaddAll in class AbstractBooleanBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
BooleanCollection c)
AbstractBooleanBigList
This implementation delegates to the type-specific version of
AbstractBooleanBigList.addAll(long, Collection).
addAll in interface BooleanBigListaddAll in class AbstractBooleanBigListList.addAll(int,java.util.Collection)public boolean addAll(BooleanCollection c)
AbstractBooleanBigList
This implementation delegates to the type-specific version of
AbstractBooleanBigList.addAll(long, Collection).
addAll in interface BooleanCollectionaddAll in class AbstractBooleanBigListc - a type-specific collection.true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean removeAll(BooleanCollection c)
BooleanCollectionremoveAll in interface BooleanCollectionremoveAll in class AbstractBooleanCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.removeAll(Collection)public boolean retainAll(BooleanCollection c)
BooleanCollectionretainAll in interface BooleanCollectionretainAll in class AbstractBooleanCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.retainAll(Collection)public void clear()
AbstractBooleanBigList
This implementation delegates to AbstractBooleanBigList.removeElements(long, long).
clear in interface java.util.Collection<java.lang.Boolean>clear in class AbstractBooleanBigListpublic long size64()
Size64public java.lang.Object clone()