Package it.unimi.dsi.fastutil.chars
Class CharBigLists.ListBigList
java.lang.Object
java.util.AbstractCollection<Character>
it.unimi.dsi.fastutil.chars.AbstractCharCollection
it.unimi.dsi.fastutil.chars.AbstractCharBigList
it.unimi.dsi.fastutil.chars.CharBigLists.ListBigList
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<Character>,CharBigList,it.unimi.dsi.fastutil.chars.CharCollection,it.unimi.dsi.fastutil.chars.CharIterable,it.unimi.dsi.fastutil.chars.CharStack,it.unimi.dsi.fastutil.Size64,it.unimi.dsi.fastutil.Stack<Character>,Serializable,Comparable<it.unimi.dsi.fastutil.BigList<? extends Character>>,Iterable<Character>,Collection<Character>
- Enclosing class:
CharBigLists
A class exposing a list as a big list.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.chars.AbstractCharBigList
AbstractCharBigList.CharRandomAccessSubList, AbstractCharBigList.CharSubList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(char key) voidadd(long index, char key) Inserts the specified element at the specified position in this type-specific big list (optional operation).booleanaddAll(long index, CharBigList 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.chars.CharCollection 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 Character> 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.chars.CharCollection c) booleanaddAll(Collection<? extends Character> c) voidclear()booleancontains(char key) Returns true if this list contains the specified element.booleancontainsAll(it.unimi.dsi.fastutil.chars.CharCollection c) booleancontainsAll(Collection<?> c) chargetChar(long index) Returns the element at the specified position.inthashCode()Returns the hash code for this big list, which is identical toList.hashCode().longindexOf(char 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.chars.CharBigListIteratoriterator()Returns a type-specific iterator on the elements of this list.longlastIndexOf(char 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.chars.CharBigListIteratorReturns a type-specific big-list iterator on this type-specific big list.it.unimi.dsi.fastutil.chars.CharBigListIteratorlistIterator(long index) Returns a type-specific list iterator on this type-specific big list starting at a given index.booleanremoveAll(it.unimi.dsi.fastutil.chars.CharCollection c) booleanremoveAll(Collection<?> c) charremoveChar(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.chars.CharCollection c) booleanretainAll(Collection<?> c) charset(long index, char 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) char[]char[]toCharArray(char[] a) Deprecated.Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharBigList
add, addElements, addElements, compareTo, ensureIndex, ensureRestrictedIndex, equals, forEach, get, getElements, indexOf, intSpliterator, lastIndexOf, peek, peekChar, pop, popChar, push, push, rem, remove, set, setElements, size, top, topChar, toStringMethods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharCollection
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.chars.CharBigList
addAll, addAll, getElements, setElements, setElements, spliteratorMethods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection
add, contains, intIterator, intParallelStream, intStream, parallelStream, remove, removeIf, removeIf, removeIf, stream, toArrayMethods inherited from interface it.unimi.dsi.fastutil.chars.CharIterable
forEach, forEachMethods inherited from interface java.util.Collection
toArray, toArray
-
Constructor Details
-
ListBigList
protected ListBigList(it.unimi.dsi.fastutil.chars.CharList 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<Character>- Overrides:
sizein classAbstractCharBigList
-
iterator
public it.unimi.dsi.fastutil.chars.CharBigListIterator iterator()Description copied from class:AbstractCharBigListReturns a type-specific iterator on the elements of this list.- Specified by:
iteratorin interfaceCharBigList- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.chars.CharIterable- Specified by:
iteratorin interfaceCollection<Character>- Specified by:
iteratorin interfaceIterable<Character>- Overrides:
iteratorin classAbstractCharBigList- See Also:
-
listIterator
public it.unimi.dsi.fastutil.chars.CharBigListIterator listIterator()Description copied from class:AbstractCharBigListReturns a type-specific big-list iterator on this type-specific big list.- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<Character>- Specified by:
listIteratorin interfaceCharBigList- Overrides:
listIteratorin classAbstractCharBigList- See Also:
-
listIterator
public it.unimi.dsi.fastutil.chars.CharBigListIterator listIterator(long index) Description copied from class:AbstractCharBigListReturns a type-specific list iterator on this type-specific big list starting at a given index.- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<Character>- Specified by:
listIteratorin interfaceCharBigList- Overrides:
listIteratorin classAbstractCharBigList- See Also:
-
addAll
Description copied from class:AbstractCharBigListAdds all of the elements in the specified collection to this list (optional operation).- Specified by:
addAllin interfaceit.unimi.dsi.fastutil.BigList<Character>- Overrides:
addAllin classAbstractCharBigList
-
subList
Description copied from interface:CharBigListReturns 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<Character>- Specified by:
subListin interfaceCharBigList- Overrides:
subListin classAbstractCharBigList- See Also:
-
contains
public boolean contains(char key) Description copied from class:AbstractCharBigListReturns true if this list contains the specified element.- Specified by:
containsin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Overrides:
containsin classAbstractCharBigList- See Also:
-
toCharArray
public char[] toCharArray()- Specified by:
toCharArrayin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Overrides:
toCharArrayin classit.unimi.dsi.fastutil.chars.AbstractCharCollection
-
removeElements
public void removeElements(long from, long to) Description copied from class:AbstractCharBigListRemoves (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 interfaceCharBigList- Overrides:
removeElementsin classAbstractCharBigList- Parameters:
from- the start index (inclusive).to- the end index (exclusive).
-
toCharArray
Deprecated.- Specified by:
toCharArrayin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Overrides:
toCharArrayin classit.unimi.dsi.fastutil.chars.AbstractCharCollection
-
addAll
public boolean addAll(long index, it.unimi.dsi.fastutil.chars.CharCollection c) Description copied from class:AbstractCharBigListInserts 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 interfaceCharBigList- Overrides:
addAllin classAbstractCharBigList- See Also:
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.chars.CharCollection c) Description copied from class:AbstractCharBigList- Specified by:
addAllin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Overrides:
addAllin classAbstractCharBigList
-
addAll
Description copied from interface:CharBigListInserts 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 interfaceCharBigList- See Also:
-
addAll
Description copied from interface:CharBigListAppends 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 interfaceCharBigList- See Also:
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.chars.CharCollection c) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Overrides:
containsAllin classit.unimi.dsi.fastutil.chars.AbstractCharCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.chars.CharCollection c) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Overrides:
removeAllin classit.unimi.dsi.fastutil.chars.AbstractCharCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.chars.CharCollection c) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Overrides:
retainAllin classit.unimi.dsi.fastutil.chars.AbstractCharCollection
-
add
public void add(long index, char key) Description copied from class:AbstractCharBigListInserts the specified element at the specified position in this type-specific big list (optional operation).- Specified by:
addin interfaceCharBigList- Overrides:
addin classAbstractCharBigList- See Also:
-
add
public boolean add(char key) Description copied from class:AbstractCharBigList- Specified by:
addin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Overrides:
addin classAbstractCharBigList
-
getChar
public char getChar(long index) Description copied from interface:CharBigListReturns the element at the specified position.- Specified by:
getCharin interfaceCharBigList- See Also:
-
indexOf
public long indexOf(char k) Description copied from interface:CharBigListReturns 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 interfaceCharBigList- Overrides:
indexOfin classAbstractCharBigList- See Also:
-
lastIndexOf
public long lastIndexOf(char k) Description copied from interface:CharBigListReturns 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 interfaceCharBigList- Overrides:
lastIndexOfin classAbstractCharBigList- See Also:
-
removeChar
public char removeChar(long index) Description copied from class:AbstractCharBigListRemoves the element at the specified position.- Specified by:
removeCharin interfaceCharBigList- Overrides:
removeCharin classAbstractCharBigList- See Also:
-
set
public char set(long index, char k) Description copied from class:AbstractCharBigListReplaces the element at the specified position in this big list with the specified element (optional operation).- Specified by:
setin interfaceCharBigList- Overrides:
setin classAbstractCharBigList- See Also:
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Character>- Specified by:
isEmptyin interfaceit.unimi.dsi.fastutil.Stack<Character>- Overrides:
isEmptyin classAbstractCollection<Character>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<Character>- Overrides:
toArrayin classAbstractCollection<Character>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Character>- Overrides:
containsAllin classit.unimi.dsi.fastutil.chars.AbstractCharCollection
-
addAll
Description copied from class:AbstractCharBigList- Specified by:
addAllin interfaceCollection<Character>- Overrides:
addAllin classAbstractCharBigList
-
removeAll
- Specified by:
removeAllin interfaceCollection<Character>- Overrides:
removeAllin classit.unimi.dsi.fastutil.chars.AbstractCharCollection
-
retainAll
- Specified by:
retainAllin interfaceCollection<Character>- Overrides:
retainAllin classit.unimi.dsi.fastutil.chars.AbstractCharCollection
-
clear
public void clear()Description copied from class:AbstractCharBigList- Specified by:
clearin interfaceCollection<Character>- Overrides:
clearin classAbstractCharBigList
-
hashCode
public int hashCode()Description copied from class:AbstractCharBigListReturns the hash code for this big list, which is identical toList.hashCode().- Specified by:
hashCodein interfaceCollection<Character>- Overrides:
hashCodein classAbstractCharBigList- Returns:
- the hash code for this big list.
-