public static class AbstractBooleanBigList.BooleanSubList extends AbstractBooleanBigList implements Serializable
AbstractBooleanBigList.BooleanSubList| Constructor and Description |
|---|
BooleanSubList(BooleanBigList l,
long from,
long to) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(boolean k) |
void |
add(long index,
boolean k) |
boolean |
addAll(long index,
BooleanCollection c)
Delegates to a more generic method.
|
boolean |
addAll(long index,
BooleanList l) |
boolean |
addAll(long index,
Collection<? extends Boolean> c)
Inserts all of the elements in the specified collection into this big list at the specified position (optional operation).
|
void |
addElements(long index,
boolean[][] a,
long offset,
long length)
Adds elements to this type-specific big list one-by-one.
|
void |
clear() |
boolean |
getBoolean(long index) |
void |
getElements(long from,
boolean[][] a,
long offset,
long length)
Copies element of this type-specific big list into the given big array one-by-one.
|
BooleanBigListIterator |
listIterator(long index)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
boolean |
rem(boolean k)
|
boolean |
remove(Object o)
Delegates to the type-specific
rem() method. |
boolean |
removeBoolean(long index) |
void |
removeElements(long from,
long to)
Removes elements of this type-specific big list one-by-one.
|
boolean |
set(long index,
boolean k) |
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. |
add, addAll, addAll, addAll, addAll, addAll, addElements, compareTo, contains, equals, get, getBoolean, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekBoolean, pop, popBoolean, push, push, remove, remove, removeBoolean, set, set, size, size, size, top, topBoolean, toStringadd, booleanIterator, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toBooleanArray, toBooleanArraybooleanIterator, containsAll, removeAll, retainAll, toArray, toArray, toBooleanArray, toBooleanArrayadd, contains, containsAll, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArraypublic BooleanSubList(BooleanBigList l, long from, long to)
public boolean add(boolean k)
add in interface BooleanCollectionadd in class AbstractBooleanBigListCollection.add(Object)public void add(long index,
boolean k)
add in interface BooleanBigListadd in class AbstractBooleanBigListList.add(int,Object)public boolean addAll(long index,
Collection<? extends Boolean> c)
BigListaddAll in interface BigList<Boolean>addAll in class AbstractBooleanBigListindex - 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 getBoolean(long index)
getBoolean in interface BooleanBigListBigList.get(long)public boolean removeBoolean(long index)
removeBoolean in interface BooleanBigListremoveBoolean in class AbstractBooleanBigListBigList.remove(long)public boolean set(long index,
boolean k)
set in interface BooleanBigListset in class AbstractBooleanBigListBigList.set(long,Object)public void clear()
clear in interface Collection<Boolean>clear in class AbstractCollection<Boolean>public long size64()
Size64public void getElements(long from,
boolean[][] a,
long offset,
long length)
AbstractBooleanBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface BooleanBigListgetElements in class AbstractBooleanBigListfrom - the start index (inclusive).a - the destination big array.offset - the offset into the destination big array where to store the first element copied.length - the number of elements to be copied.public void removeElements(long from,
long to)
AbstractBooleanBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface BooleanBigListremoveElements in class AbstractBooleanBigListfrom - the start index (inclusive).to - the end index (exclusive).public void addElements(long index,
boolean[][] a,
long offset,
long length)
AbstractBooleanBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface BooleanBigListaddElements in class AbstractBooleanBigListindex - the index at which to add elements.a - the big array containing the elements.offset - the offset of the first element to add.length - the number of elements to add.public BooleanBigListIterator listIterator(long index)
BooleanBigListlistIterator in interface BigList<Boolean>listIterator in interface BooleanBigListlistIterator in class AbstractBooleanBigListindex - 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<Boolean>subList in interface BooleanBigListsubList in class AbstractBooleanBigListfrom - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)public boolean rem(boolean k)
BooleanCollectionremove(), but the clash with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates remove().rem in interface BooleanCollectionrem in class AbstractBooleanBigListCollection.remove(Object)public boolean remove(Object o)
AbstractBooleanCollectionrem() method.remove in interface Collection<Boolean>remove in class AbstractBooleanCollectionpublic boolean addAll(long index,
BooleanCollection c)
AbstractBooleanBigListaddAll in interface BooleanBigListaddAll in class AbstractBooleanBigListList.addAll(int,java.util.Collection)public boolean addAll(long index,
BooleanList l)