Package it.unimi.dsi.fastutil.booleans
Class BooleanBigLists.ListBigList
java.lang.Object
java.util.AbstractCollection<Boolean>
it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
it.unimi.dsi.fastutil.booleans.AbstractBooleanBigList
it.unimi.dsi.fastutil.booleans.BooleanBigLists.ListBigList
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<Boolean>,BooleanBigList,it.unimi.dsi.fastutil.booleans.BooleanCollection,it.unimi.dsi.fastutil.booleans.BooleanIterable,it.unimi.dsi.fastutil.booleans.BooleanStack,it.unimi.dsi.fastutil.Size64,it.unimi.dsi.fastutil.Stack<Boolean>,Serializable,Comparable<it.unimi.dsi.fastutil.BigList<? extends Boolean>>,Iterable<Boolean>,Collection<Boolean>
- Enclosing class:
BooleanBigLists
public static class BooleanBigLists.ListBigList
extends AbstractBooleanBigList
implements Serializable
A class exposing a list as a big list.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanBigList
AbstractBooleanBigList.BooleanRandomAccessSubList, AbstractBooleanBigList.BooleanSubList -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedListBigList(it.unimi.dsi.fastutil.booleans.BooleanList list) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(boolean key) voidadd(long index, boolean key) Inserts the specified element at the specified position in this type-specific big list (optional operation).booleanaddAll(long index, 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).booleanaddAll(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).booleanaddAll(long index, Collection<? extends Boolean> c) Adds all of the elements in the specified collection to this list (optional operation).booleanAppends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).booleanaddAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) booleanaddAll(Collection<? extends Boolean> c) voidclear()booleancontains(boolean key) Returns true if this list contains the specified element.booleancontainsAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) booleancontainsAll(Collection<?> c) booleangetBoolean(long index) Returns the element at the specified position.inthashCode()Returns the hash code for this big list, which is identical toList.hashCode().longindexOf(boolean k) Returns the index of the first occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.booleanisEmpty()it.unimi.dsi.fastutil.booleans.BooleanBigListIteratoriterator()Returns a type-specific iterator on the elements of this list.longlastIndexOf(boolean k) Returns the index of the last occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.it.unimi.dsi.fastutil.booleans.BooleanBigListIteratorReturns a type-specific big-list iterator on this type-specific big list.it.unimi.dsi.fastutil.booleans.BooleanBigListIteratorlistIterator(long index) Returns a type-specific list iterator on this type-specific big list starting at a given index.booleanremoveAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) booleanremoveAll(Collection<?> c) booleanremoveBoolean(long index) Removes the element at the specified position.voidremoveElements(long from, long to) Removes (hopefully quickly) elements of this type-specific big list.booleanretainAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) booleanretainAll(Collection<?> c) booleanset(long index, boolean k) Replaces the element at the specified position in this big list with the specified element (optional operation).voidsize(long size) longsize64()subList(long from, long to) Returns a type-specific view of the portion of this type-specific big list from the indexfrom, inclusive, to the indexto, exclusive.<T> T[]toArray(T[] a) boolean[]boolean[]toBooleanArray(boolean[] a) Deprecated.Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanBigList
add, addElements, addElements, compareTo, ensureIndex, ensureRestrictedIndex, equals, forEach, get, getElements, indexOf, lastIndexOf, peek, peekBoolean, pop, popBoolean, push, push, rem, remove, set, setElements, size, top, topBoolean, toStringMethods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
add, contains, remove, toArrayMethods inherited from class java.util.AbstractCollection
toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanBigList
addAll, addAll, getElements, setElements, setElements, spliteratorMethods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanCollection
add, contains, remove, removeIf, removeIf, toArrayMethods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanIterable
forEachMethods inherited from interface java.util.Collection
parallelStream, stream, toArray, toArray
-
Constructor Details
-
ListBigList
protected ListBigList(it.unimi.dsi.fastutil.booleans.BooleanList list)
-
-
Method Details
-
size64
public long size64()- Specified by:
size64in interfaceit.unimi.dsi.fastutil.Size64
-
size
public void size(long size) - Specified by:
sizein interfaceit.unimi.dsi.fastutil.BigList<Boolean>- Overrides:
sizein classAbstractBooleanBigList
-
iterator
public it.unimi.dsi.fastutil.booleans.BooleanBigListIterator iterator()Description copied from class:AbstractBooleanBigListReturns a type-specific iterator on the elements of this list.- Specified by:
iteratorin interfaceBooleanBigList- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.booleans.BooleanCollection- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.booleans.BooleanIterable- Specified by:
iteratorin interfaceCollection<Boolean>- Specified by:
iteratorin interfaceIterable<Boolean>- Overrides:
iteratorin classAbstractBooleanBigList- See Also:
-
listIterator
public it.unimi.dsi.fastutil.booleans.BooleanBigListIterator listIterator()Description copied from class:AbstractBooleanBigListReturns a type-specific big-list iterator on this type-specific big list.- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<Boolean>- Specified by:
listIteratorin interfaceBooleanBigList- Overrides:
listIteratorin classAbstractBooleanBigList- See Also:
-
listIterator
public it.unimi.dsi.fastutil.booleans.BooleanBigListIterator listIterator(long index) Description copied from class:AbstractBooleanBigListReturns a type-specific list iterator on this type-specific big list starting at a given index.- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<Boolean>- Specified by:
listIteratorin interfaceBooleanBigList- Overrides:
listIteratorin classAbstractBooleanBigList- See Also:
-
addAll
Description copied from class:AbstractBooleanBigListAdds all of the elements in the specified collection to this list (optional operation).- Specified by:
addAllin interfaceit.unimi.dsi.fastutil.BigList<Boolean>- Overrides:
addAllin classAbstractBooleanBigList
-
subList
Description copied from interface:BooleanBigListReturns a type-specific view of the portion of this type-specific big list from the indexfrom, inclusive, to the indexto, exclusive.- Specified by:
subListin interfaceit.unimi.dsi.fastutil.BigList<Boolean>- Specified by:
subListin interfaceBooleanBigList- Overrides:
subListin classAbstractBooleanBigList- See Also:
-
contains
public boolean contains(boolean key) Description copied from class:AbstractBooleanBigListReturns true if this list contains the specified element.- Specified by:
containsin interfaceit.unimi.dsi.fastutil.booleans.BooleanCollection- Overrides:
containsin classAbstractBooleanBigList- See Also:
-
toBooleanArray
public boolean[] toBooleanArray()- Specified by:
toBooleanArrayin interfaceit.unimi.dsi.fastutil.booleans.BooleanCollection- Overrides:
toBooleanArrayin classit.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
-
removeElements
public void removeElements(long from, long to) Description copied from class:AbstractBooleanBigListRemoves (hopefully quickly) elements of this type-specific big list.This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
- Specified by:
removeElementsin interfaceBooleanBigList- Overrides:
removeElementsin classAbstractBooleanBigList- Parameters:
from- the start index (inclusive).to- the end index (exclusive).
-
toBooleanArray
Deprecated.- Specified by:
toBooleanArrayin interfaceit.unimi.dsi.fastutil.booleans.BooleanCollection- Overrides:
toBooleanArrayin classit.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
-
addAll
public boolean addAll(long index, it.unimi.dsi.fastutil.booleans.BooleanCollection c) Description copied from class:AbstractBooleanBigListInserts all of the elements in the specified type-specific collection into this type-specific big list at the specified position (optional operation).- Specified by:
addAllin interfaceBooleanBigList- Overrides:
addAllin classAbstractBooleanBigList- See Also:
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) Description copied from class:AbstractBooleanBigList- Specified by:
addAllin interfaceit.unimi.dsi.fastutil.booleans.BooleanCollection- Overrides:
addAllin classAbstractBooleanBigList
-
addAll
Description copied from interface:BooleanBigListInserts all of the elements in the specified type-specific big list into this type-specific big list at the specified position (optional operation).- Specified by:
addAllin interfaceBooleanBigList- See Also:
-
addAll
Description copied from interface:BooleanBigListAppends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).- Specified by:
addAllin interfaceBooleanBigList- See Also:
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.booleans.BooleanCollection- Overrides:
containsAllin classit.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.booleans.BooleanCollection- Overrides:
removeAllin classit.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.booleans.BooleanCollection- Overrides:
retainAllin classit.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
-
add
public void add(long index, boolean key) Description copied from class:AbstractBooleanBigListInserts the specified element at the specified position in this type-specific big list (optional operation).- Specified by:
addin interfaceBooleanBigList- Overrides:
addin classAbstractBooleanBigList- See Also:
-
add
public boolean add(boolean key) Description copied from class:AbstractBooleanBigList- Specified by:
addin interfaceit.unimi.dsi.fastutil.booleans.BooleanCollection- Overrides:
addin classAbstractBooleanBigList
-
getBoolean
public boolean getBoolean(long index) Description copied from interface:BooleanBigListReturns the element at the specified position.- Specified by:
getBooleanin interfaceBooleanBigList- See Also:
-
indexOf
public long indexOf(boolean k) Description copied from interface:BooleanBigListReturns the index of the first occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.- Specified by:
indexOfin interfaceBooleanBigList- Overrides:
indexOfin classAbstractBooleanBigList- See Also:
-
lastIndexOf
public long lastIndexOf(boolean k) Description copied from interface:BooleanBigListReturns the index of the last occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.- Specified by:
lastIndexOfin interfaceBooleanBigList- Overrides:
lastIndexOfin classAbstractBooleanBigList- See Also:
-
removeBoolean
public boolean removeBoolean(long index) Description copied from class:AbstractBooleanBigListRemoves the element at the specified position.- Specified by:
removeBooleanin interfaceBooleanBigList- Overrides:
removeBooleanin classAbstractBooleanBigList- See Also:
-
set
public boolean set(long index, boolean k) Description copied from class:AbstractBooleanBigListReplaces the element at the specified position in this big list with the specified element (optional operation).- Specified by:
setin interfaceBooleanBigList- Overrides:
setin classAbstractBooleanBigList- See Also:
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Boolean>- Specified by:
isEmptyin interfaceit.unimi.dsi.fastutil.Stack<Boolean>- Overrides:
isEmptyin classAbstractCollection<Boolean>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<Boolean>- Overrides:
toArrayin classAbstractCollection<Boolean>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Boolean>- Overrides:
containsAllin classit.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
-
addAll
Description copied from class:AbstractBooleanBigList- Specified by:
addAllin interfaceCollection<Boolean>- Overrides:
addAllin classAbstractBooleanBigList
-
removeAll
- Specified by:
removeAllin interfaceCollection<Boolean>- Overrides:
removeAllin classit.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
-
retainAll
- Specified by:
retainAllin interfaceCollection<Boolean>- Overrides:
retainAllin classit.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
-
clear
public void clear()Description copied from class:AbstractBooleanBigList- Specified by:
clearin interfaceCollection<Boolean>- Overrides:
clearin classAbstractBooleanBigList
-
hashCode
public int hashCode()Description copied from class:AbstractBooleanBigListReturns the hash code for this big list, which is identical toList.hashCode().- Specified by:
hashCodein interfaceCollection<Boolean>- Overrides:
hashCodein classAbstractBooleanBigList- Returns:
- the hash code for this big list.
-