Interface BooleanBigList
-
- All Superinterfaces:
BigList<Boolean>,BooleanCollection,BooleanIterable,Collection<Boolean>,Comparable<BigList<? extends Boolean>>,Iterable<Boolean>,Size64
- All Known Implementing Classes:
AbstractBooleanBigList,AbstractBooleanBigList.BooleanSubList,BooleanBigArrayBigList,BooleanBigLists.EmptyBigList,BooleanBigLists.ListBigList,BooleanBigLists.Singleton,BooleanBigLists.SynchronizedBigList,BooleanBigLists.UnmodifiableBigList
public interface BooleanBigList extends BigList<Boolean>, BooleanCollection, Size64, Comparable<BigList<? extends Boolean>>
A type-specificBigList; provides some additional methods that use polymorphism to avoid (un)boxing.Additionally, this interface strengthens
iterator(),listIterator(),listIterator(long)andsubList(long,long).Besides polymorphic methods, this interfaces specifies methods to copy into an array or remove contiguous sublists. Although the abstract implementation of this interface provides simple, one-by-one implementations of these methods, it is expected that concrete implementation override them with optimized versions.
- See Also:
List
-
-
Method Summary
Modifier and Type Method Description voidadd(long index, boolean key)Inserts the specified element at the specified position in this type-specific big list (optional operation).voidadd(long index, Boolean key)Deprecated.Please use the corresponding type-specific method instead.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, 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(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).voidaddElements(long index, boolean[][] a)Add (hopefully quickly) elements to this type-specific big list.voidaddElements(long index, boolean[][] a, long offset, long length)Add (hopefully quickly) elements to this type-specific big list.Booleanget(long index)Deprecated.Please use the corresponding type-specific method instead.booleangetBoolean(long index)Returns the element at the specified position.voidgetElements(long from, boolean[][] a, long offset, long length)Copies (hopefully quickly) elements of this type-specific big list into the given big array.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.longindexOf(Object o)Deprecated.Please use the corresponding type-specific method instead.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.longlastIndexOf(Object o)Deprecated.Please use the corresponding type-specific method instead.BooleanBigListIteratorlistIterator()Returns a type-specific big-list iterator on this type-specific big list.BooleanBigListIteratorlistIterator(long index)Returns a type-specific list iterator on this type-specific big list starting at a given index.Booleanremove(long index)Deprecated.Please use the corresponding type-specific method instead.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.booleanset(long index, boolean k)Replaces the element at the specified position in this big list with the specified element (optional operation).Booleanset(long index, Boolean k)Deprecated.Please use the corresponding type-specific method instead.BooleanBigListsubList(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.-
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanCollection
add, add, addAll, contains, contains, containsAll, rem, remove, removeAll, retainAll, toArray, toBooleanArray, toBooleanArray
-
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanIterable
forEach, forEach
-
Methods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
iterator
BooleanBigListIterator iterator()
Returns a type-specific iterator on the elements of this list.Note that this specification strengthens the one given in
Collection.iterator().- Specified by:
iteratorin interfaceBooleanCollection- Specified by:
iteratorin interfaceBooleanIterable- Specified by:
iteratorin interfaceCollection<Boolean>- Specified by:
iteratorin interfaceIterable<Boolean>- Returns:
- a type-specific iterator on the elements of this collection.
- See Also:
Collection.iterator()
-
listIterator
BooleanBigListIterator listIterator()
Returns a type-specific big-list iterator on this type-specific big list.Note that this specification strengthens the one given in
BigList.listIterator().- Specified by:
listIteratorin interfaceBigList<Boolean>- Returns:
- a big-list iterator over the elements in this big list.
- See Also:
BigList.listIterator()
-
listIterator
BooleanBigListIterator listIterator(long index)
Returns a type-specific list iterator on this type-specific big list starting at a given index.Note that this specification strengthens the one given in
BigList.listIterator(long).- Specified by:
listIteratorin interfaceBigList<Boolean>- Parameters:
index- index of first element to be returned from the big-list iterator.- Returns:
- a big-list iterator of the elements in this big list, starting at the specified position in this big list.
- See Also:
BigList.listIterator(long)
-
subList
BooleanBigList 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.Note that this specification strengthens the one given in
BigList.subList(long,long).- Specified by:
subListin interfaceBigList<Boolean>- Parameters:
from- the starting element (inclusive).to- the ending element (exclusive).- Returns:
- a big sublist view of this big list.
- See Also:
BigList.subList(long,long)
-
getElements
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.- Parameters:
from- 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.
-
removeElements
void removeElements(long from, long to)Removes (hopefully quickly) elements of this type-specific big list.- Parameters:
from- the start index (inclusive).to- the end index (exclusive).
-
addElements
void addElements(long index, boolean[][] a)Add (hopefully quickly) elements to this type-specific big list.- Parameters:
index- the index at which to add elements.a- the big array containing the elements.
-
addElements
void addElements(long index, boolean[][] a, long offset, long length)Add (hopefully quickly) elements to this type-specific big list.- Parameters:
index- 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.
-
add
void add(long index, boolean key)Inserts the specified element at the specified position in this type-specific big list (optional operation).- See Also:
BigList.add(long,Object)
-
addAll
boolean addAll(long index, 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).- See Also:
List.addAll(int,java.util.Collection)
-
addAll
boolean addAll(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).- See Also:
List.addAll(int,java.util.Collection)
-
addAll
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).- See Also:
List.addAll(int,java.util.Collection)
-
getBoolean
boolean getBoolean(long index)
Returns the element at the specified position.- See Also:
BigList.get(long)
-
removeBoolean
boolean removeBoolean(long index)
Removes the element at the specified position.- See Also:
BigList.remove(long)
-
set
boolean set(long index, boolean k)Replaces the element at the specified position in this big list with the specified element (optional operation).- See Also:
BigList.set(long,Object)
-
indexOf
long indexOf(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.- See Also:
BigList.indexOf(Object)
-
lastIndexOf
long lastIndexOf(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.- See Also:
BigList.lastIndexOf(Object)
-
add
@Deprecated void add(long index, Boolean key)
Deprecated.Please use the corresponding type-specific method instead.Inserts the specified element at the specified position in this big list (optional operation).- Specified by:
addin interfaceBigList<Boolean>- Parameters:
index- a position in the big list.key- an element to be inserted.- See Also:
List.add(int,Object)
-
get
@Deprecated Boolean get(long index)
Deprecated.Please use the corresponding type-specific method instead.Returns the element at the specified position.- Specified by:
getin interfaceBigList<Boolean>- Parameters:
index- a position in the big list.- Returns:
- the element at the specified position.
- See Also:
List.get(int)
-
indexOf
@Deprecated long indexOf(Object o)
Deprecated.Please use the corresponding type-specific method instead.Returns the index of the first occurrence of the specified element in this big list, or -1 if this big list does not contain the element.- Specified by:
indexOfin interfaceBigList<Boolean>- Parameters:
o- the object to search for.- Returns:
- the index of the first occurrence of the specified element in this big list, or -1 if this big list does not contain the element.
- See Also:
List.indexOf(Object)
-
lastIndexOf
@Deprecated long lastIndexOf(Object o)
Deprecated.Please use the corresponding type-specific method instead.Returns the index of the last occurrence of the specified element in this big list, or -1 if this big list does not contain the element.- Specified by:
lastIndexOfin interfaceBigList<Boolean>- Parameters:
o- the object to search for.- Returns:
- the index of the last occurrence of the specified element in this big list, or -1 if this big list does not contain the element.
- See Also:
List.lastIndexOf(Object)
-
remove
@Deprecated Boolean remove(long index)
Deprecated.Please use the corresponding type-specific method instead.Removes the element at the specified position.- Specified by:
removein interfaceBigList<Boolean>- Parameters:
index- a position in the big list.- Returns:
- the element previously at the specified position.
- See Also:
List.remove(int)
-
set
@Deprecated Boolean set(long index, Boolean k)
Deprecated.Please use the corresponding type-specific method instead.Replaces the element at the specified position in this big list with the specified element (optional operation).- Specified by:
setin interfaceBigList<Boolean>- Parameters:
index- a position in the big list.k- the element to be stored at the specified position.- Returns:
- the element previously at the specified positions.
- See Also:
List.set(int,Object)
-
-