org.apache.commons.collections.primitives

Class RandomAccessShortList.RandomAccessShortSubList

protected static class RandomAccessShortList.RandomAccessShortSubList extends RandomAccessShortList implements ShortList

Field Summary
RandomAccessShortList.ComodChecker_comod
int_limit
RandomAccessShortList_list
int_offset
Constructor Summary
RandomAccessShortSubList(RandomAccessShortList list, int fromIndex, int toIndex)
Method Summary
voidadd(int index, short element)
voidcheckRange(int index)
voidcheckRangeIncludingEndpoint(int index)
shortget(int index)
shortremoveElementAt(int index)
shortset(int index, short element)
intsize()
inttoUnderlyingIndex(int index)

Field Detail

_comod

private RandomAccessShortList.ComodChecker _comod

_limit

private int _limit

_list

private RandomAccessShortList _list

_offset

private int _offset

Constructor Detail

RandomAccessShortSubList

RandomAccessShortSubList(RandomAccessShortList list, int fromIndex, int toIndex)

Method Detail

add

public void add(int index, short element)

checkRange

private void checkRange(int index)

checkRangeIncludingEndpoint

private void checkRangeIncludingEndpoint(int index)

get

public short get(int index)

removeElementAt

public short removeElementAt(int index)

set

public short set(int index, short element)

size

public int size()

toUnderlyingIndex

private int toUnderlyingIndex(int index)
Copyright (c) 2002-2003 - Apache Software Foundation