⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.list

Class AbstractLinkedList.LinkedSubList

AbstractList
|
+--org.apache.commons.collections.list.AbstractLinkedList.LinkedSubList
Enclosing Class:


protected static class AbstractLinkedList.LinkedSubList
extends AbstractList

The sublist implementation for AbstractLinkedList.

Constructor Summary

LinkedSubList(AbstractLinkedList parent, int fromIndex, int toIndex)

Method Summary

void

add(int index, Object obj)

boolean

addAll(Collection coll)

boolean

addAll(int index, Collection coll)

void

checkModCount()

void

clear()

Object

get(int index)

Iterator

iterator()

ListIterator

listIterator(final int index)

void

rangeCheck(int index, int beyond)

Object

remove(int index)

Object

set(int index, Object obj)

int

size()

List

subList(int fromIndexInclusive, int toIndexExclusive)

Constructor Details

LinkedSubList

protected LinkedSubList(AbstractLinkedList parent, int fromIndex, int toIndex)

Parameters:
parent
fromIndex
toIndex

Method Details

add

public void add(int index, Object obj)

Parameters:
index
obj

addAll

public boolean addAll(Collection coll)

Parameters:
coll

addAll

public boolean addAll(int index, Collection coll)

Parameters:
index
coll

checkModCount

protected void checkModCount()


clear

public void clear()


get

public Object get(int index)

Parameters:
index

iterator

public Iterator iterator()


listIterator

public ListIterator listIterator(final int index)

Parameters:
index

rangeCheck

protected void rangeCheck(int index, int beyond)

Parameters:
index
beyond

remove

public Object remove(int index)

Parameters:
index

set

public Object set(int index, Object obj)

Parameters:
index
obj

size

public int size()


subList

public List subList(int fromIndexInclusive, int toIndexExclusive)

Parameters:
fromIndexInclusive
toIndexExclusive