public static class CharBigLists.Singleton extends AbstractCharBigList implements Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractCharBigList.CharSubList| Modifier | Constructor and Description |
|---|---|
protected |
Singleton(char element) |
| Modifier and Type | Method and Description |
|---|---|
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) |
boolean |
addAll(long i,
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 i,
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 i,
Collection<? extends Character> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
void |
clear() |
Object |
clone() |
boolean |
contains(char k)
Returns true if this list contains the specified element.
|
char |
getChar(long i)
Returns the element at the specified position.
|
CharBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
CharBigListIterator |
listIterator(long i)
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).
|
boolean |
removeAll(CharCollection c)
Remove from this collection all elements in the given type-specific collection.
|
boolean |
removeAll(Collection<?> c) |
char |
removeChar(long i)
Removes the element at the specified position.
|
boolean |
retainAll(CharCollection c)
Retains in this collection only elements from the given type-specific collection.
|
boolean |
retainAll(Collection<?> c) |
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. |
char[] |
toCharArray()
Returns a primitive type array containing the items of this collection.
|
add, add, add, addElements, addElements, compareTo, ensureIndex, ensureRestrictedIndex, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, peek, peekChar, pop, popChar, push, push, remove, removeElements, set, set, size, size, top, topChar, toStringadd, contains, containsAll, remove, toArray, toCharArraycontainsAll, isEmpty, toArray, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, containsAll, remove, removeIf, removeIf, toArray, toCharArraycontainsAll, isEmpty, parallelStream, spliterator, stream, toArray, toArrayforEach, forEachpublic char getChar(long i)
CharBigListgetChar in interface CharBigListBigList.get(long)public boolean rem(char k)
AbstractCharBigListThis implementation delegates to indexOf().
rem in interface CharCollectionrem in class AbstractCharBigListCollection.remove(Object)public char removeChar(long i)
AbstractCharBigListThis implementation always throws an UnsupportedOperationException.
removeChar in interface CharBigListremoveChar in class AbstractCharBigListBigList.remove(long)public boolean contains(char k)
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 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 i)
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 AbstractCharBigListi - 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 addAll(long i,
Collection<? extends Character> c)
AbstractCharBigListaddAll in interface BigList<Character>addAll in class AbstractCharBigListi - 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 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 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 addAll(long i,
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(long i,
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 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 clear()
AbstractCharBigListThis implementation delegates to AbstractCharBigList.removeElements(long, long).
clear in interface Collection<Character>clear in class AbstractCharBigListpublic long size64()
Size64Copyright © 2020. All rights reserved.