public static class AbstractBooleanBigList.BooleanSubList extends AbstractBooleanBigList implements java.io.Serializable
AbstractBooleanBigList.BooleanRandomAccessSubList, AbstractBooleanBigList.BooleanSubList| Modifier and Type | Field and Description |
|---|---|
protected long |
from
Initial (inclusive) index of this sublist.
|
protected BooleanBigList |
l
The list this sublist restricts.
|
protected long |
to
Final (exclusive) index of this sublist.
|
| 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)
Inserts the specified element at the specified position in this type-specific big list (optional operation).
|
boolean |
addAll(long index,
BooleanBigList l)
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 index,
it.unimi.dsi.fastutil.booleans.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 index,
java.util.Collection<? extends java.lang.Boolean> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
void |
addElements(long index,
boolean[][] a,
long offset,
long length)
Add (hopefully quickly) elements to this type-specific big list.
|
boolean |
getBoolean(long index)
Returns the element at the specified position.
|
void |
getElements(long from,
boolean[][] a,
long offset,
long length)
Copies (hopefully quickly) elements of this type-specific big list into the given big array.
|
it.unimi.dsi.fastutil.booleans.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)
Removes a single instance of the specified element from this collection, if it is present (optional operation).
|
boolean |
removeBoolean(long index)
Removes the element at the specified position.
|
void |
removeElements(long from,
long to)
Removes (hopefully quickly) elements of this type-specific big list.
|
boolean |
set(long index,
boolean k)
Replaces the element at the specified position in this big list with the specified element (optional operation).
|
long |
size64() |
it.unimi.dsi.fastutil.booleans.BooleanSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this big-list.
|
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, addElements, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, forEach, get, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekBoolean, pop, popBoolean, push, push, remove, set, setElements, size, size, top, topBoolean, toStringadd, contains, containsAll, containsAll, remove, removeAll, removeAll, retainAll, retainAll, toArray, toBooleanArray, toBooleanArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addAll, addAll, getElements, setElements, setElementsadd, contains, containsAll, remove, removeAll, removeIf, removeIf, retainAll, toArray, toBooleanArray, toBooleanArrayprotected final BooleanBigList l
protected final long from
protected long to
public BooleanSubList(BooleanBigList l, long from, long to)
public boolean add(boolean k)
AbstractBooleanBigListadd in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionadd in class AbstractBooleanBigListpublic void add(long index,
boolean k)
AbstractBooleanBigListadd in interface BooleanBigListadd in class AbstractBooleanBigListBigList.add(long,Object)public boolean addAll(long index,
java.util.Collection<? extends java.lang.Boolean> c)
AbstractBooleanBigListaddAll in interface it.unimi.dsi.fastutil.BigList<java.lang.Boolean>addAll in class AbstractBooleanBigListpublic boolean getBoolean(long index)
BooleanBigListgetBoolean in interface BooleanBigListBigList.get(long)public boolean removeBoolean(long index)
AbstractBooleanBigListremoveBoolean in interface BooleanBigListremoveBoolean in class AbstractBooleanBigListBigList.remove(long)public boolean set(long index,
boolean k)
AbstractBooleanBigListset in interface BooleanBigListset in class AbstractBooleanBigListBigList.set(long,Object)public long size64()
size64 in interface it.unimi.dsi.fastutil.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 it.unimi.dsi.fastutil.booleans.BooleanBigListIterator listIterator(long index)
AbstractBooleanBigListlistIterator in interface it.unimi.dsi.fastutil.BigList<java.lang.Boolean>listIterator in interface BooleanBigListlistIterator in class AbstractBooleanBigListBigList.listIterator(long)public it.unimi.dsi.fastutil.booleans.BooleanSpliterator spliterator()
BooleanBigListBigList spliterators must report at least Spliterator.SIZED and Spliterator.ORDERED.
See List.spliterator() for more documentation on the requirements
of the returned spliterator (despite BigList not being a List, most of the
same requirements apply.
spliterator in interface BooleanBigListspliterator in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionspliterator in interface it.unimi.dsi.fastutil.booleans.BooleanIterablespliterator in interface java.lang.Iterable<java.lang.Boolean>spliterator in interface java.util.Collection<java.lang.Boolean>public BooleanBigList subList(long from, long to)
BooleanBigListfrom, inclusive, to the index to, exclusive.subList in interface it.unimi.dsi.fastutil.BigList<java.lang.Boolean>subList in interface BooleanBigListsubList in class AbstractBooleanBigListBigList.subList(long,long)public boolean rem(boolean k)
AbstractBooleanBigListrem in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionrem in class AbstractBooleanBigListCollection.remove(Object)public boolean addAll(long index,
it.unimi.dsi.fastutil.booleans.BooleanCollection c)
AbstractBooleanBigListaddAll in interface BooleanBigListaddAll in class AbstractBooleanBigListList.addAll(int,java.util.Collection)public boolean addAll(long index,
BooleanBigList l)
BooleanBigListaddAll in interface BooleanBigListBigList.addAll(long,Collection)