protected static class RandomAccessShortList.RandomAccessShortSubList extends RandomAccessShortList implements ShortList
RandomAccessShortList.RandomAccessShortListIterator, RandomAccessShortList.RandomAccessShortSubList| Modifier and Type | Field and Description |
|---|---|
private RandomAccessShortList.ComodChecker |
_comod |
private int |
_limit |
private RandomAccessShortList |
_list |
private int |
_offset |
| Constructor and Description |
|---|
RandomAccessShortSubList(RandomAccessShortList list,
int fromIndex,
int toIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
short element)
Unsupported in this implementation.
|
private void |
checkRange(int index) |
private void |
checkRangeIncludingEndpoint(int index) |
short |
get(int index)
Returns the value of the element at the specified position
within me.
|
short |
removeElementAt(int index)
Unsupported in this implementation.
|
short |
set(int index,
short 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, toStringaddAll, clear, contains, containsAll, isEmpty, removeAll, removeElement, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subListaddAll, clear, contains, containsAll, isEmpty, removeAll, removeElement, retainAll, toArray, toArrayprivate int _offset
private int _limit
private RandomAccessShortList _list
private RandomAccessShortList.ComodChecker _comod
RandomAccessShortSubList(RandomAccessShortList list, int fromIndex, int toIndex)
public short get(int index)
ShortListget in interface ShortListget in class RandomAccessShortListindex - the index of the element to returnpublic short removeElementAt(int index)
RandomAccessShortListremoveElementAt in interface ShortListremoveElementAt in class RandomAccessShortListindex - the index of the element to removepublic short set(int index,
short element)
RandomAccessShortListset in interface ShortListset in class RandomAccessShortListindex - the index of the element to changeelement - the value to be stored at the specified positionpublic void add(int index,
short element)
RandomAccessShortListadd in interface ShortListadd in class RandomAccessShortListindex - the index at which to insert the elementelement - the value to insertpublic int size()
ShortCollectionsize in interface ShortCollectionsize in class RandomAccessShortListprivate void checkRange(int index)
private void checkRangeIncludingEndpoint(int index)
private int toUnderlyingIndex(int index)
Copyright (c) 2002-2003 - Apache Software Foundation