protected static class RandomAccessIntList.RandomAccessIntSubList extends RandomAccessIntList implements IntList
RandomAccessIntList.RandomAccessIntListIterator, RandomAccessIntList.RandomAccessIntSubList
Modifier and Type | Field and Description |
---|---|
private RandomAccessIntList.ComodChecker |
_comod |
private int |
_limit |
private RandomAccessIntList |
_list |
private int |
_offset |
Constructor and Description |
---|
RandomAccessIntSubList(RandomAccessIntList list,
int fromIndex,
int toIndex) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
int element)
Unsupported in this implementation.
|
private void |
checkRange(int index) |
private void |
checkRangeIncludingEndpoint(int index) |
int |
get(int index)
Returns the value of the element at the specified position
within me.
|
int |
removeElementAt(int index)
Unsupported in this implementation.
|
int |
set(int index,
int 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 RandomAccessIntList _list
private RandomAccessIntList.ComodChecker _comod
RandomAccessIntSubList(RandomAccessIntList list, int fromIndex, int toIndex)
public int get(int index)
IntList
get
in interface IntList
get
in class RandomAccessIntList
index
- the index of the element to returnpublic int removeElementAt(int index)
RandomAccessIntList
removeElementAt
in interface IntList
removeElementAt
in class RandomAccessIntList
index
- the index of the element to removepublic int set(int index, int element)
RandomAccessIntList
set
in interface IntList
set
in class RandomAccessIntList
index
- the index of the element to changeelement
- the value to be stored at the specified positionpublic void add(int index, int element)
RandomAccessIntList
add
in interface IntList
add
in class RandomAccessIntList
index
- the index at which to insert the elementelement
- the value to insertpublic int size()
IntCollection
size
in interface IntCollection
size
in class RandomAccessIntList
private void checkRange(int index)
private void checkRangeIncludingEndpoint(int index)
private int toUnderlyingIndex(int index)
Copyright (c) 2002-2003 - Apache Software Foundation