public static class AbstractCharBigList.CharSubList extends AbstractCharBigList implements Serializable
AbstractCharBigList.CharSubList| Constructor and Description |
|---|
CharSubList(CharBigList l,
long from,
long to) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(char k)
Ensures that this collection contains the specified element (optional operation).
|
void |
add(long index,
char k)
Inserts the specified element at the specified position in this type-specific big list (optional operation).
|
boolean |
addAll(long index,
CharBigList l)
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 |
addElements(long index,
char[][] a,
long offset,
long length)
Add (hopefully quickly) elements to this type-specific big list.
|
char |
getChar(long index)
Returns the element at the specified position.
|
void |
getElements(long from,
char[][] a,
long offset,
long length)
Copies (hopefully quickly) elements of this type-specific big list into the given big array.
|
CharBigListIterator |
listIterator(long index)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
boolean |
rem(char k)
Removes a single instance of the specified element from this collection, if it is present (optional operation).
|
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.
|
char |
set(long index,
char k)
Replaces the element at the specified position in this big list with the specified element (optional operation).
|
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. |
add, addAll, addAll, addAll, addElements, clear, compareTo, contains, equals, get, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekChar, pop, popChar, push, push, remove, set, size, size, top, topChar, toStringadd, contains, containsAll, remove, removeAll, retainAll, toArray, toCharArray, toCharArraycontainsAll, isEmpty, removeAll, retainAll, toArray, toArrayadd, contains, containsAll, remove, removeAll, removeIf, removeIf, retainAll, toArray, toCharArray, toCharArraycontainsAll, isEmpty, parallelStream, removeAll, retainAll, spliterator, stream, toArray, toArrayforEach, forEachpublic CharSubList(CharBigList l, long from, long to)
public boolean add(char k)
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 void add(long index,
char k)
AbstractCharBigListThis implementation always throws an UnsupportedOperationException.
add in interface CharBigListadd in class AbstractCharBigListBigList.add(long,Object)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 char getChar(long index)
CharBigListgetChar in interface CharBigListBigList.get(long)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 long size64()
Size64public void getElements(long from,
char[][] a,
long offset,
long length)
AbstractCharBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface CharBigListgetElements in class AbstractCharBigListfrom - 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.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 void addElements(long index,
char[][] a,
long offset,
long length)
AbstractCharBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface CharBigListaddElements in class AbstractCharBigListindex - 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.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 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 rem(char k)
AbstractCharBigListThis implementation delegates to indexOf().
rem in interface CharCollectionrem in class AbstractCharBigListCollection.remove(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(long index,
CharBigList l)
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)