org.apache.commons.collections.list

Class AbstractLinkedList.LinkedSubList

Enclosing Class:
AbstractLinkedList

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)
protected void
checkModCount()
void
clear()
Object
get(int index)
Iterator
iterator()
ListIterator
listIterator(int index)
protected 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)

Method Details

add

public void add(int index,
                Object obj)

addAll

public boolean addAll(Collection coll)

addAll

public boolean addAll(int index,
                      Collection coll)

checkModCount

protected void checkModCount()

clear

public void clear()

get

public Object get(int index)

iterator

public Iterator iterator()

listIterator

public ListIterator listIterator(int index)

rangeCheck

protected void rangeCheck(int index,
                          int beyond)

remove

public Object remove(int index)

set

public Object set(int index,
                  Object obj)

size

public int size()

subList

public List subList(int fromIndexInclusive,
                    int toIndexExclusive)

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.