public static class CharBigLists.ListBigList extends AbstractCharBigList implements Serializable
AbstractCharBigList.CharSubList| Modifier and Type | Method and Description |
|---|---|
boolean |
add(char key) |
void |
add(long index,
char key) |
boolean |
addAll(CharBigList c) |
boolean |
addAll(CharCollection c)
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(Collection<? extends Character> c)
Delegates to a more generic method.
|
boolean |
addAll(long index,
CharBigList c)
Delegates to a more generic method.
|
boolean |
addAll(long index,
CharCollection c)
Delegates to a more generic method.
|
boolean |
addAll(long index,
Collection<? extends Character> c)
Inserts all of the elements in the specified collection into this big list at the specified position (optional operation).
|
void |
clear() |
boolean |
contains(char key) |
boolean |
containsAll(CharCollection c)
Checks whether this collection contains all elements from the given type-specific collection.
|
boolean |
containsAll(Collection<?> c)
Checks whether this collection contains all elements from the given collection.
|
char |
getChar(long index) |
int |
hashCode()
Returns the hash code for this big list, which is identical to
List.hashCode(). |
long |
indexOf(char k) |
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) |
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)
Remove from this collection all elements in the given collection.
|
char |
removeChar(long index) |
void |
removeElements(long from,
long to)
Removes elements of this type-specific big list one-by-one.
|
boolean |
retainAll(CharCollection c)
Retains in this collection only elements from the given type-specific collection.
|
boolean |
retainAll(Collection<?> c)
Retains in this collection only elements from the given collection.
|
char |
set(long index,
char k) |
int |
size()
Deprecated.
|
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)
Returns an containing the items of this collection;
the runtime type of the returned array is that of the specified array.
|
char[] |
toCharArray()
Returns a primitive type array containing the items of this collection.
|
char[] |
toCharArray(char[] a)
Returns a primitive type array containing the items of this collection.
|
add, addAll, addElements, addElements, compareTo, equals, get, getChar, getElements, indexOf, lastIndexOf, listIterator, peek, peekChar, pop, popChar, push, push, rem, remove, remove, removeChar, set, set, size, top, topChar, toStringadd, charIterator, contains, rem, remove, toArray, toArraycharIterator, toArrayadd, contains, remove, toArraypublic long size64()
Size64@Deprecated public int size()
Size64Integer.MAX_VALUE.size in interface Size64size in interface Collection<Character>size in class AbstractCharBigListInteger.MAX_VALUE.Collection.size()public 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()
CharCollectionNote 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.
iterator in interface CharBigListiterator in interface CharCollectioniterator in interface CharIterableiterator in interface Iterable<Character>iterator in interface Collection<Character>iterator in class AbstractCharBigListList.iterator()public CharBigListIterator listIterator()
CharBigListlistIterator in interface BigList<Character>listIterator in interface CharBigListlistIterator in class AbstractCharBigListList.listIterator()public boolean addAll(long index,
Collection<? extends Character> c)
BigListaddAll 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 CharBigListIterator listIterator(long index)
CharBigListlistIterator 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 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)
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).public char[] toCharArray(char[] a)
CharCollectionNote 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 void add(long index,
char key)
add in interface CharBigListadd in class AbstractCharBigListList.add(int,Object)public boolean addAll(long index,
CharCollection c)
AbstractCharBigListaddAll in interface CharBigListaddAll in class AbstractCharBigListList.addAll(int,java.util.Collection)public boolean addAll(long index,
CharBigList c)
AbstractCharBigListaddAll in interface CharBigListaddAll in class AbstractCharBigListList.addAll(int,java.util.Collection)public boolean add(char key)
add in interface CharCollectionadd in class AbstractCharBigListCollection.add(Object)public boolean addAll(CharBigList c)
addAll in interface CharBigListaddAll in class AbstractCharBigListList.addAll(int,java.util.Collection)public char getChar(long index)
getChar in interface CharBigListBigList.get(long)public long indexOf(char k)
indexOf in interface CharBigListindexOf in class AbstractCharBigListBigList.indexOf(Object)public long lastIndexOf(char k)
lastIndexOf in interface CharBigListlastIndexOf in class AbstractCharBigListBigList.lastIndexOf(Object)public char removeChar(long index)
removeChar in interface CharBigListremoveChar in class AbstractCharBigListBigList.remove(long)public char set(long index,
char k)
set in interface CharBigListset in class AbstractCharBigListBigList.set(long,Object)public boolean addAll(CharCollection c)
AbstractCharCollectionaddAll 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 containsAll(CharCollection c)
AbstractCharCollectioncontainsAll 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)
AbstractCharCollectionremoveAll 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)
AbstractCharCollectionretainAll 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 boolean isEmpty()
StackisEmpty in interface Stack<Character>isEmpty in interface Collection<Character>isEmpty in class AbstractCharCollectionpublic <T> T[] toArray(T[] a)
CharCollectionWarning: Note 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.
toArray in interface CharCollectiontoArray in interface Collection<Character>toArray in class AbstractCharCollectiona - if this array is big enough, it will be used to store this collection.Collection.toArray(Object[])public boolean containsAll(Collection<?> c)
AbstractCharCollectioncontainsAll in interface Collection<Character>containsAll in class AbstractCharCollectionc - a collection.true if this collection contains all elements of the argument.public boolean addAll(Collection<? extends Character> c)
AbstractCharBigListaddAll in interface Collection<Character>addAll in class AbstractCharBigListc - a collection.true if this collection changed as a result of the call.public boolean removeAll(Collection<?> c)
AbstractCharCollectionremoveAll in interface Collection<Character>removeAll in class AbstractCharCollectionc - a collection.true if this collection changed as a result of the call.public boolean retainAll(Collection<?> c)
AbstractCharCollectionretainAll in interface Collection<Character>retainAll in class AbstractCharCollectionc - a collection.true if this collection changed as a result of the call.public void clear()
clear in interface Collection<Character>clear in class AbstractCollection<Character>public int hashCode()
AbstractCharBigListList.hashCode().hashCode in interface Collection<Character>hashCode in class AbstractCharBigList