public static class CharLists.SynchronizedList extends CharCollections.SynchronizedCollection implements CharList, Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
add(int i,
char k) |
void |
add(int i,
Character k) |
boolean |
addAll(CharList l) |
boolean |
addAll(int index,
CharCollection c) |
boolean |
addAll(int index,
CharList l) |
boolean |
addAll(int index,
Collection<? extends Character> c) |
void |
addElements(int index,
char[] a)
Add (hopefully quickly) elements to this type-specific list.
|
void |
addElements(int index,
char[] a,
int offset,
int length)
Add (hopefully quickly) elements to this type-specific list.
|
CharListIterator |
charListIterator()
Deprecated.
|
CharListIterator |
charListIterator(int i)
Deprecated.
|
CharList |
charSubList(int from,
int to)
Deprecated.
|
int |
compareTo(List<? extends Character> o) |
boolean |
equals(Object o) |
Character |
get(int i) |
char |
getChar(int i) |
void |
getElements(int from,
char[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific list into the given array.
|
int |
hashCode() |
int |
indexOf(char k) |
int |
indexOf(Object o) |
CharListIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
lastIndexOf(char k) |
int |
lastIndexOf(Object o) |
CharListIterator |
listIterator()
Returns a type-specific list iterator on the list.
|
CharListIterator |
listIterator(int i)
Returns a type-specific list iterator on the list starting at a given index.
|
Character |
remove(int i) |
char |
removeChar(int i) |
void |
removeElements(int from,
int to)
Removes (hopefully quickly) elements of this type-specific list.
|
char |
set(int i,
char k) |
Character |
set(int index,
Character k) |
void |
size(int size)
Sets the size of this list.
|
CharList |
subList(int from,
int to)
Returns a type-specific view of the portion of this list from the index
from, inclusive, to the index to, exclusive. |
add, add, addAll, addAll, charIterator, clear, contains, contains, containsAll, containsAll, isEmpty, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toCharArray, toCharArray, toStringadd, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayaddAll, charIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toCharArray, toCharArraypublic char getChar(int i)
getChar in interface CharListList.get(int)public char set(int i,
char k)
set in interface CharListList.set(int,Object)public void add(int i,
char k)
add in interface CharListList.add(int,Object)public char removeChar(int i)
removeChar in interface CharListList.remove(int)public int indexOf(char k)
indexOf in interface CharListList.indexOf(Object)public int lastIndexOf(char k)
lastIndexOf in interface CharListList.lastIndexOf(Object)public boolean addAll(int index,
Collection<? extends Character> c)
public void getElements(int from,
char[] a,
int offset,
int length)
CharListgetElements in interface CharListfrom - the start index (inclusive).a - the destination array.offset - the offset into the destination array where to store the first element copied.length - the number of elements to be copied.public void removeElements(int from,
int to)
CharListremoveElements in interface CharListfrom - the start index (inclusive).to - the end index (exclusive).public void addElements(int index,
char[] a,
int offset,
int length)
CharListaddElements in interface CharListindex - the index at which to add elements.a - the array containing the elements.offset - the offset of the first element to add.length - the number of elements to add.public void addElements(int index,
char[] a)
CharListaddElements in interface CharListindex - the index at which to add elements.a - the array containing the elements.public void size(int size)
CharListIf the specified size is smaller than the current size, the last elements are
discarded. Otherwise, they are filled with 0/null/false.
public CharListIterator 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 CharCollectioniterator in interface CharIterableiterator in interface CharListiterator in interface Iterable<Character>iterator in interface Collection<Character>iterator in interface List<Character>iterator in class CharCollections.SynchronizedCollectionpublic CharListIterator listIterator()
CharListlistIterator in interface CharListlistIterator in interface List<Character>List.listIterator()public CharListIterator listIterator(int i)
CharListlistIterator in interface CharListlistIterator in interface List<Character>List.listIterator(int)@Deprecated public CharListIterator charListIterator()
CharListcharListIterator in interface CharListCharList.listIterator()@Deprecated public CharListIterator charListIterator(int i)
CharListcharListIterator in interface CharListCharList.listIterator(int)public CharList subList(int from, int to)
CharListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
@Deprecated public CharList charSubList(int from, int to)
CharListfrom, inclusive, to the index to, exclusive.charSubList in interface CharListList.subList(int,int)public boolean equals(Object o)
public int hashCode()
public int compareTo(List<? extends Character> o)
compareTo in interface Comparable<List<? extends Character>>public boolean addAll(int index,
CharCollection c)
addAll in interface CharListList.add(int,Object)public boolean addAll(int index,
CharList l)
addAll in interface CharListList.add(int,Object)public boolean addAll(CharList l)
addAll in interface CharListList.add(int,Object)public int lastIndexOf(Object o)
lastIndexOf in interface List<Character>