protected static class RandomAccessCharList.RandomAccessCharSubList extends RandomAccessCharList implements CharList
RandomAccessCharList.RandomAccessCharListIterator, RandomAccessCharList.RandomAccessCharSubList
Modifier and Type | Field and Description |
---|---|
private RandomAccessCharList.ComodChecker |
_comod |
private int |
_limit |
private RandomAccessCharList |
_list |
private int |
_offset |
Constructor and Description |
---|
RandomAccessCharList.RandomAccessCharSubList(RandomAccessCharList list,
int fromIndex,
int toIndex) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
char element)
Unsupported in this implementation.
|
private void |
checkRange(int index) |
private void |
checkRangeIncludingEndpoint(int index) |
char |
get(int index)
Returns the value of the element at the specified position
within me.
|
char |
removeElementAt(int index)
Unsupported in this implementation.
|
char |
set(int index,
char element)
Unsupported in this implementation.
|
int |
size()
Returns the number of elements I contain.
|
private int |
toUnderlyingIndex(int index) |
add, addAll, equals, getModCount, hashCode, incrModCount, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList, toString
addAll, clear, contains, containsAll, isEmpty, removeAll, removeElement, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
addAll, clear, contains, containsAll, isEmpty, removeAll, removeElement, retainAll, toArray, toArray
private int _offset
private int _limit
private RandomAccessCharList _list
private RandomAccessCharList.ComodChecker _comod
RandomAccessCharList.RandomAccessCharSubList(RandomAccessCharList list, int fromIndex, int toIndex)
public char get(int index)
CharList
get
in interface CharList
get
in class RandomAccessCharList
index
- the index of the element to returnpublic char removeElementAt(int index)
RandomAccessCharList
removeElementAt
in interface CharList
removeElementAt
in class RandomAccessCharList
index
- the index of the element to removepublic char set(int index, char element)
RandomAccessCharList
set
in interface CharList
set
in class RandomAccessCharList
index
- the index of the element to changeelement
- the value to be stored at the specified positionpublic void add(int index, char element)
RandomAccessCharList
add
in interface CharList
add
in class RandomAccessCharList
index
- the index at which to insert the elementelement
- the value to insertpublic int size()
CharCollection
size
in interface CharCollection
size
in class RandomAccessCharList
private void checkRange(int index)
private void checkRangeIncludingEndpoint(int index)
private int toUnderlyingIndex(int index)
Copyright (c) 2002-2003 - Apache Software Foundation