java.util
Class Sublist
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.Sublist
- All Implemented Interfaces:
- Collection, List
- public class Sublist
- extends AbstractList
Title:
Description:
Copyright: Copyright (c) 2001
Company:
Methods inherited from class java.util.AbstractList |
add, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, subList |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Sublist
public Sublist(AbstractList ali,
int fromIndex,
int toIndex)
set
public java.lang.Object set(int index,
java.lang.Object o)
- Specified by:
set
in interface List
- Overrides:
set
in class AbstractList
get
public java.lang.Object get(int index)
throws java.lang.IndexOutOfBoundsException
- Specified by:
get
in interface List
- Specified by:
get
in class AbstractList
- Throws:
java.lang.IndexOutOfBoundsException
add
public void add(int index,
java.lang.Object o)
- Specified by:
add
in interface List
- Overrides:
add
in class AbstractList
remove
public java.lang.Object remove(int index,
java.lang.Object o)
addAll
public boolean addAll(int index,
Collection c)
- Specified by:
addAll
in interface List
- Overrides:
addAll
in class AbstractList
addAll
public boolean addAll(Collection c)
- Specified by:
addAll
in interface Collection
- Overrides:
addAll
in class AbstractCollection
removeRange
public void removeRange(int from,
int to)
- Overrides:
removeRange
in class AbstractList
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in class AbstractCollection