org.apache.commons.collections.primitives

Class RandomAccessLongList.RandomAccessLongSubList

protected static class RandomAccessLongList.RandomAccessLongSubList extends RandomAccessLongList implements LongList

Field Summary
RandomAccessLongList.ComodChecker_comod
int_limit
RandomAccessLongList_list
int_offset
Constructor Summary
RandomAccessLongSubList(RandomAccessLongList list, int fromIndex, int toIndex)
Method Summary
voidadd(int index, long element)
voidcheckRange(int index)
voidcheckRangeIncludingEndpoint(int index)
longget(int index)
longremoveElementAt(int index)
longset(int index, long element)
intsize()
inttoUnderlyingIndex(int index)

Field Detail

_comod

private RandomAccessLongList.ComodChecker _comod

_limit

private int _limit

_list

private RandomAccessLongList _list

_offset

private int _offset

Constructor Detail

RandomAccessLongSubList

RandomAccessLongSubList(RandomAccessLongList list, int fromIndex, int toIndex)

Method Detail

add

public void add(int index, long element)

checkRange

private void checkRange(int index)

checkRangeIncludingEndpoint

private void checkRangeIncludingEndpoint(int index)

get

public long get(int index)

removeElementAt

public long removeElementAt(int index)

set

public long set(int index, long element)

size

public int size()

toUnderlyingIndex

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