java.util
Class AbstractList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
- All Implemented Interfaces:
- Collection, List
- Direct Known Subclasses:
- ArrayList, Sublist
- public abstract class AbstractList
- extends AbstractCollection
- implements List
Title:
Description:
Copyright: Copyright (c) 2001
Company:
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
al
protected AbstractList al
AbstractList
protected AbstractList()
add
public boolean add(java.lang.Object o)
throws UnsupportedOperationException,
java.lang.ClassCastException,
java.lang.IllegalArgumentException
- Specified by:
add
in interface Collection
- Overrides:
add
in class AbstractCollection
- Throws:
UnsupportedOperationException
java.lang.ClassCastException
java.lang.IllegalArgumentException
get
public abstract java.lang.Object get(int index)
throws java.lang.IndexOutOfBoundsException
- Specified by:
get
in interface List
- Throws:
java.lang.IndexOutOfBoundsException
set
public java.lang.Object set(int index,
java.lang.Object element)
throws UnsupportedOperationException,
java.lang.ClassCastException,
java.lang.IllegalArgumentException,
java.lang.IndexOutOfBoundsException
- Specified by:
set
in interface List
- Throws:
UnsupportedOperationException
java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.IndexOutOfBoundsException
add
public void add(int index,
java.lang.Object element)
throws UnsupportedOperationException,
java.lang.ClassCastException,
java.lang.IllegalArgumentException,
java.lang.IndexOutOfBoundsException
- Specified by:
add
in interface List
- Throws:
UnsupportedOperationException
java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.IndexOutOfBoundsException
remove
public java.lang.Object remove(int index)
throws UnsupportedOperationException,
java.lang.IndexOutOfBoundsException
- Specified by:
remove
in interface List
- Throws:
UnsupportedOperationException
java.lang.IndexOutOfBoundsException
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interface List
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interface List
clear
public void clear()
throws UnsupportedOperationException
- Specified by:
clear
in interface Collection
- Overrides:
clear
in class AbstractCollection
- Throws:
UnsupportedOperationException
addAll
public boolean addAll(int index,
Collection c)
throws UnsupportedOperationException,
java.lang.ClassCastException,
java.lang.IllegalArgumentException,
java.lang.IndexOutOfBoundsException
- Specified by:
addAll
in interface List
- Throws:
UnsupportedOperationException
java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.IndexOutOfBoundsException
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in class AbstractCollection
listIterator
public ListIterator listIterator()
- Specified by:
listIterator
in interface List
listIterator
public ListIterator listIterator(int index)
throws java.lang.IndexOutOfBoundsException
- Specified by:
listIterator
in interface List
- Throws:
java.lang.IndexOutOfBoundsException
subList
public List subList(int fromIndex,
int toIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.IllegalArgumentException
- Specified by:
subList
in interface List
- Throws:
java.lang.IndexOutOfBoundsException
java.lang.IllegalArgumentException
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface Collection
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection
removeRange
protected void removeRange(int fromIndex,
int toIndex)