public static class CharBigLists.ListBigList extends AbstractCharBigList implements Serializable
AbstractCharBigList.CharSubList| Modifier and Type | Method and Description |
|---|---|
boolean |
add(char key)
Ensures that this collection contains the specified element (optional operation).
|
void |
add(long index,
char key)
Inserts the specified element at the specified position in this type-specific big list (optional operation).
|
boolean |
addAll(CharBigList c)
Appends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).
|
boolean |
addAll(CharCollection c)
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(Collection<? extends Character> c)
This implementation delegates to the type-specific version of
BigList.addAll(long, Collection). |
boolean |
addAll(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).
|
boolean |
addAll(long index,
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).
|
boolean |
addAll(long index,
Collection<? extends Character> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
void |
clear()
This implementation delegates to
AbstractCharBigList.removeElements(long, long). |
boolean |
contains(char key)
Returns true if this list contains the specified element.
|
boolean |
containsAll(CharCollection c)
Checks whether this collection contains all elements from the given type-specific collection.
|
boolean |
containsAll(Collection<?> c) |
char |
getChar(long index)
Returns the element at the specified position.
|
int |
hashCode()
Returns the hash code for this big list, which is identical to
List.hashCode(). |
long |
indexOf(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.
|
boolean |
isEmpty()
Checks whether the stack is empty.
|
CharBigListIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
long |
lastIndexOf(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.
|
CharBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
CharBigListIterator |
listIterator(long index)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
boolean |
removeAll(CharCollection c)
Remove from this collection all elements in the given type-specific collection.
|
boolean |
removeAll(Collection<?> c) |
char |
removeChar(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 |
retainAll(CharCollection c)
Retains in this collection only elements from the given type-specific collection.
|
boolean |
retainAll(Collection<?> c) |
char |
set(long index,
char k)
Replaces the element at the specified position in this big list with the specified element (optional operation).
|
void |
size(long size)
Sets the size of this big list.
|
long |
size64()
Returns the size of this data structure as a long.
|
CharBigList |
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. |
<T> T[] |
toArray(T[] a) |
char[] |
toCharArray()
Returns a primitive type array containing the items of this collection.
|
char[] |
toCharArray(char[] a)
Deprecated.
|
add, addElements, addElements, compareTo, equals, get, getElements, indexOf, lastIndexOf, peek, peekChar, pop, popChar, push, push, rem, remove, set, size, top, topChar, toStringadd, contains, remove, toArraytoArrayadd, contains, remove, removeIf, removeIf, toArrayparallelStream, spliterator, stream, toArrayforEach, forEachpublic long size64()
Size64public void size(long size)
BigListIf the specified size is smaller than the current size, the last elements are
discarded. Otherwise, they are filled with 0/null/false.
size in interface BigList<Character>size in class AbstractCharBigListsize - the new size.public CharBigListIterator iterator()
AbstractCharBigListNote that this specification strengthens the one given in
Iterable.iterator(), which was already
strengthened in the corresponding type-specific class,
but was weakened by the fact that this interface extends Collection.
This implementation delegates to AbstractCharBigList.listIterator().
iterator in interface CharBigListiterator in interface CharCollectioniterator in interface CharIterableiterator in interface Iterable<Character>iterator in interface Collection<Character>iterator in class AbstractCharBigListIterable.iterator()public CharBigListIterator listIterator()
AbstractCharBigListNote that this specification strengthens the one given in BigList.listIterator().
This implementation delegates to listIterator(0).
listIterator in interface BigList<Character>listIterator in interface CharBigListlistIterator in class AbstractCharBigListBigList.listIterator()public CharBigListIterator listIterator(long index)
AbstractCharBigListNote that this specification strengthens the one given in BigList.listIterator(long).
This implementation is based on the random-access methods.
listIterator in interface BigList<Character>listIterator in interface CharBigListlistIterator in class AbstractCharBigListindex - index of first element to be returned from the big-list iterator.BigList.listIterator(long)public boolean addAll(long index,
Collection<? extends Character> c)
AbstractCharBigListaddAll in interface BigList<Character>addAll in class AbstractCharBigListindex - 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 CharBigList subList(long from, long to)
CharBigListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in BigList.subList(long,long).
subList in interface BigList<Character>subList in interface CharBigListsubList in class AbstractCharBigListfrom - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)public boolean contains(char key)
AbstractCharBigListThis implementation delegates to indexOf().
contains in interface CharCollectioncontains in class AbstractCharBigListCollection.contains(Object)public char[] toCharArray()
CharCollectiontoCharArray in interface CharCollectiontoCharArray in class AbstractCharCollectionCollection.toArray()public void removeElements(long from,
long to)
AbstractCharBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface CharBigListremoveElements in class AbstractCharBigListfrom - the start index (inclusive).to - the end index (exclusive).@Deprecated public char[] toCharArray(char[] a)
AbstractCharCollectionNote that, contrarily to Collection.toArray(Object[]), this
methods just writes all elements of this collection: no special
value will be added after the last one.
toCharArray in interface CharCollectiontoCharArray in class AbstractCharCollectiona - if this array is big enough, it will be used to store this collection.Collection.toArray(Object[])public boolean addAll(long index,
CharCollection c)
AbstractCharBigListThis implementation delegates to the type-specific version of AbstractCharBigList.addAll(long, Collection).
addAll in interface CharBigListaddAll in class AbstractCharBigListList.addAll(int,java.util.Collection)public boolean addAll(CharCollection c)
AbstractCharBigListThis implementation delegates to the type-specific version of AbstractCharBigList.addAll(long, Collection).
addAll in interface CharCollectionaddAll in class AbstractCharBigListc - a type-specific collection.true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean addAll(long index,
CharBigList c)
AbstractCharBigListThis implementation delegates to the type-specific version of AbstractCharBigList.addAll(long, Collection).
addAll in interface CharBigListaddAll in class AbstractCharBigListList.addAll(int,java.util.Collection)public boolean addAll(CharBigList c)
AbstractCharBigListThis implementation delegates to the type-specific list version of AbstractCharBigList.addAll(long, Collection).
addAll in interface CharBigListaddAll in class AbstractCharBigListList.addAll(int,java.util.Collection)public boolean containsAll(CharCollection c)
CharCollectioncontainsAll in interface CharCollectioncontainsAll in class AbstractCharCollectionc - a type-specific collection.true if this collection contains all elements of the argument.Collection.containsAll(Collection)public boolean removeAll(CharCollection c)
CharCollectionremoveAll in interface CharCollectionremoveAll in class AbstractCharCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.removeAll(Collection)public boolean retainAll(CharCollection c)
CharCollectionretainAll in interface CharCollectionretainAll in class AbstractCharCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.retainAll(Collection)public void add(long index,
char key)
AbstractCharBigListThis implementation always throws an UnsupportedOperationException.
add in interface CharBigListadd in class AbstractCharBigListBigList.add(long,Object)public boolean add(char key)
AbstractCharBigListThis implementation always throws an UnsupportedOperationException.
This implementation delegates to the type-specific version of BigList.add(long, Object).
add in interface CharCollectionadd in class AbstractCharBigListCollection.add(Object)public char getChar(long index)
CharBigListgetChar in interface CharBigListBigList.get(long)public long indexOf(char k)
CharBigListindexOf in interface CharBigListindexOf in class AbstractCharBigListBigList.indexOf(Object)public long lastIndexOf(char k)
CharBigListlastIndexOf in interface CharBigListlastIndexOf in class AbstractCharBigListBigList.lastIndexOf(Object)public char removeChar(long index)
AbstractCharBigListThis implementation always throws an UnsupportedOperationException.
removeChar in interface CharBigListremoveChar in class AbstractCharBigListBigList.remove(long)public char set(long index,
char k)
AbstractCharBigListThis implementation always throws an UnsupportedOperationException.
set in interface CharBigListset in class AbstractCharBigListBigList.set(long,Object)public boolean isEmpty()
StackisEmpty in interface Stack<Character>isEmpty in interface Collection<Character>isEmpty in class AbstractCollection<Character>public <T> T[] toArray(T[] a)
toArray in interface Collection<Character>toArray in class AbstractCollection<Character>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Character>containsAll in class AbstractCollection<Character>public boolean addAll(Collection<? extends Character> c)
AbstractCharBigListThis implementation delegates to the type-specific version of BigList.addAll(long, Collection).
addAll in interface Collection<Character>addAll in class AbstractCharBigListpublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<Character>removeAll in class AbstractCollection<Character>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Character>retainAll in class AbstractCollection<Character>public void clear()
AbstractCharBigListThis implementation delegates to AbstractCharBigList.removeElements(long, long).
clear in interface Collection<Character>clear in class AbstractCharBigListpublic int hashCode()
AbstractCharBigListList.hashCode().hashCode in interface Collection<Character>hashCode in class AbstractCharBigList