public static class AbstractCharList.CharSubList extends AbstractCharList implements Serializable
AbstractCharList.CharSubList| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
from
Initial (inclusive) index of this sublist.
|
protected CharList |
l
The list this sublist restricts.
|
protected int |
to
Final (exclusive) index of this sublist.
|
| コンストラクタと説明 |
|---|
AbstractCharList.CharSubList(CharList l,
int from,
int to) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
add(char k) |
void |
add(int index,
char k) |
boolean |
addAll(int index,
CharCollection c)
Delegates to a more generic method.
|
boolean |
addAll(int index,
CharList l)
Delegates to a more generic method.
|
boolean |
addAll(int index,
Collection<? extends Character> c) |
void |
addElements(int index,
char[] a,
int offset,
int length)
Adds elements to this type-specific list one-by-one.
|
void |
clear() |
char |
getChar(int index) |
void |
getElements(int from,
char[] a,
int offset,
int length)
Copies element of this type-specific list into the given array one-by-one.
|
CharListIterator |
listIterator(int index)
Returns a type-specific list iterator on the list starting at a given index.
|
boolean |
rem(char k)
|
boolean |
remove(Object o)
Delegates to
rem(). |
char |
removeChar(int index) |
void |
removeElements(int from,
int to)
Removes elements of this type-specific list one-by-one.
|
char |
set(int index,
char k) |
int |
size() |
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, addAll, addAll, addAll, addElements, charListIterator, charListIterator, charSubList, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekChar, pop, popChar, push, push, remove, set, size, top, topChar, toStringadd, charIterator, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toCharArray, toCharArrayadd, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArraycharIterator, containsAll, removeAll, retainAll, toArray, toArray, toCharArray, toCharArrayprotected final CharList l
protected final int from
protected int to
public AbstractCharList.CharSubList(CharList l, int from, int to)
public boolean add(char k)
add インタフェース内 CharCollectionadd インタフェース内 CharListadd クラス内 AbstractCharListCollection.add(Object)public void add(int index,
char k)
add インタフェース内 CharListadd クラス内 AbstractCharListList.add(int,Object)public boolean addAll(int index,
Collection<? extends Character> c)
addAll インタフェース内 List<Character>addAll クラス内 AbstractCharListpublic char getChar(int index)
getChar インタフェース内 CharListList.get(int)public char removeChar(int index)
removeChar インタフェース内 CharListremoveChar クラス内 AbstractCharListList.remove(int)public char set(int index,
char k)
set インタフェース内 CharListset クラス内 AbstractCharListList.set(int,Object)public void clear()
clear インタフェース内 Collection<Character>clear インタフェース内 List<Character>clear クラス内 AbstractCollection<Character>public int size()
size インタフェース内 Collection<Character>size インタフェース内 List<Character>size クラス内 AbstractCollection<Character>public void getElements(int from,
char[] a,
int offset,
int length)
AbstractCharListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements インタフェース内 CharListgetElements クラス内 AbstractCharListfrom - 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)
AbstractCharListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements インタフェース内 CharListremoveElements クラス内 AbstractCharListfrom - the start index (inclusive).to - the end index (exclusive).public void addElements(int index,
char[] a,
int offset,
int length)
AbstractCharListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements インタフェース内 CharListaddElements クラス内 AbstractCharListindex - 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 CharListIterator listIterator(int index)
CharListlistIterator インタフェース内 CharListlistIterator インタフェース内 List<Character>listIterator クラス内 AbstractCharListList.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).
subList インタフェース内 CharListsubList インタフェース内 List<Character>subList クラス内 AbstractCharListList.subList(int,int)public boolean rem(char k)
CharCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().rem インタフェース内 CharCollectionrem クラス内 AbstractCharListCollection.remove(Object)public boolean remove(Object o)
AbstractCharListrem().remove インタフェース内 Collection<Character>remove インタフェース内 List<Character>remove クラス内 AbstractCharListpublic boolean addAll(int index,
CharCollection c)
AbstractCharListaddAll インタフェース内 CharListaddAll クラス内 AbstractCharListList.add(int,Object)public boolean addAll(int index,
CharList l)
AbstractCharListaddAll インタフェース内 CharListaddAll クラス内 AbstractCharListList.add(int,Object)Copyright © 2011-2015. All Rights Reserved.