public abstract class AbstractCharList extends AbstractCharCollection implements CharList
CharList interface.| Constructor and Description |
|---|
AbstractCharList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(char e)
A Type-Specific implementation of add function that delegates to
List.add(int, Object) |
void |
add(int index,
java.lang.Character element)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(CharCollection c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
addAll(CharList c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Character> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
AbstractCharList |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o)
Compares if the list are the same.
|
int |
hashCode()
Generates the hashcode based on the values stored in the list.
|
int |
indexOf(char e)
The indexOf implementation iterates over all elements and compares them to the search value.
|
int |
indexOf(java.lang.Object o)
Deprecated.
|
CharIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
int |
lastIndexOf(char e)
The lastIndexOf implementation iterates over all elements and compares them to the search value.
|
int |
lastIndexOf(java.lang.Object o)
Deprecated.
|
CharListIterator |
listIterator()
A Type-Specific Iterator of listIterator
|
CharListIterator |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
CharList |
subList(int fromIndex,
int toIndex)
A Type-Specific List of subList
|
boolean |
swapRemoveChar(char e)
A Highly Optimized remove function that removes the desired element.
|
add, contains, contains, containsAll, containsAll, containsAny, containsAny, remChar, remove, removeAll, removeAll, retainAll, retainAll, toCharArray, toCharArrayclear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, add, addAll, addAll, addElements, addElements, addElements, addIfAbsent, addIfPresent, contains, extractElements, fillBuffer, get, getChar, getElements, getElements, remove, remove, removeChar, removeElements, replaceAll, replaceChars, set, set, sort, sort, spliterator, swapRemove, synchronize, synchronize, unmodifiable, unstableSort, unstableSortaddAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remChar, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toCharArray, toCharArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic boolean add(char e)
List.add(int, Object)add in interface CharCollectionadd in interface CharListe - the element to addList.add(Object)@Deprecated
public void add(int index,
java.lang.Character element)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.List<java.lang.Character>public boolean addAll(CharCollection c)
addAll in interface CharCollectionaddAll in class AbstractCharCollectionc - the elements that wants to be addedpublic boolean addAll(CharList c)
@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Character> c)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
addAll in interface java.util.Collection<java.lang.Character>addAll in interface java.util.List<java.lang.Character>addAll in class AbstractCharCollection@Deprecated public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<java.lang.Character>indexOf in interface CharListo - the value that the index is searched for.@Deprecated public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<java.lang.Character>lastIndexOf in interface CharListo - the value that the index is searched for.public int indexOf(char e)
public int lastIndexOf(char e)
lastIndexOf in interface CharListe - the value that the index is searched for.public boolean swapRemoveChar(char e)
CharListswapRemoveChar in interface CharListe - the element that should be removedpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Character>equals in interface java.util.List<java.lang.Character>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Character>hashCode in interface java.util.List<java.lang.Character>hashCode in class java.lang.Objectpublic CharList subList(int fromIndex, int toIndex)
CharListpublic CharIterator iterator()
CharCollectioniterator in interface java.lang.Iterable<java.lang.Character>iterator in interface java.util.Collection<java.lang.Character>iterator in interface java.util.List<java.lang.Character>iterator in interface CharCollectioniterator in interface CharIterableiterator in class AbstractCharCollectionCollection.iterator()public CharListIterator listIterator()
CharListlistIterator in interface java.util.List<java.lang.Character>listIterator in interface CharListList.listIterator()public CharListIterator listIterator(int index)
CharListlistIterator in interface java.util.List<java.lang.Character>listIterator in interface CharListList.listIterator(int)public void size(int size)
CharListpublic AbstractCharList copy()
CharCollectioncopy in interface CharCollectioncopy in interface CharListcopy in class AbstractCharCollection