public class ReadOnlyCharList extends AbstractList<Character> implements RandomAccess
Modifier and Type | Field and Description |
---|---|
protected char[] |
chars |
modCount
Constructor and Description |
---|
ReadOnlyCharList(char[] chars) |
Modifier and Type | Method and Description |
---|---|
Character |
get(int index)
Use
getChar(int) if a char primitive is desired, to avoid auto-boxing. |
char |
getChar(int index)
Same as
get(int) , but avoids auto-boxing. |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public char getChar(int index)
Same as get(int)
, but avoids auto-boxing.
public Character get(int index)
Use getChar(int)
if a char primitive is desired, to avoid auto-boxing.
public int size()
size
in interface Collection<Character>
size
in interface List<Character>
size
in class AbstractCollection<Character>
Copyright © 2009–2017 Mark A. Ziesemer. All rights reserved.