org.apache.commons.collections.list
Class AbstractLinkedList.LinkedSubList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
org.apache.commons.collections.list.AbstractLinkedList.LinkedSubList
- All Implemented Interfaces:
- Iterable, Collection, List
- Enclosing class:
- AbstractLinkedList
protected static class AbstractLinkedList.LinkedSubList
- extends AbstractList
The sublist implementation for AbstractLinkedList.
AbstractLinkedList.LinkedSubList
protected AbstractLinkedList.LinkedSubList(AbstractLinkedList parent,
int fromIndex,
int toIndex)
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in interface List
- Specified by:
size
in class AbstractCollection
get
public Object get(int index)
- Specified by:
get
in interface List
- Specified by:
get
in class AbstractList
add
public void add(int index,
Object obj)
- Specified by:
add
in interface List
- Overrides:
add
in class AbstractList
remove
public Object remove(int index)
- Specified by:
remove
in interface List
- Overrides:
remove
in class AbstractList
addAll
public boolean addAll(Collection coll)
- Specified by:
addAll
in interface Collection
- Specified by:
addAll
in interface List
- Overrides:
addAll
in class AbstractCollection
addAll
public boolean addAll(int index,
Collection coll)
- Specified by:
addAll
in interface List
- Overrides:
addAll
in class AbstractList
set
public Object set(int index,
Object obj)
- Specified by:
set
in interface List
- Overrides:
set
in class AbstractList
clear
public void clear()
- Specified by:
clear
in interface Collection
- Specified by:
clear
in interface List
- Overrides:
clear
in class AbstractList
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Iterable
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in interface List
- Overrides:
iterator
in class AbstractList
listIterator
public ListIterator listIterator(int index)
- Specified by:
listIterator
in interface List
- Overrides:
listIterator
in class AbstractList
subList
public List subList(int fromIndexInclusive,
int toIndexExclusive)
- Specified by:
subList
in interface List
- Overrides:
subList
in class AbstractList
rangeCheck
protected void rangeCheck(int index,
int beyond)
checkModCount
protected void checkModCount()
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.