|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.walend.collection.AbstractArrayList | +--net.walend.collection.MutableArrayList
add() appends the object to the end of the list. addAll() appends all of the objects to the end of the list.
Nested Class Summary |
Nested classes inherited from class net.walend.collection.AbstractArrayList |
AbstractArrayList.ListItr |
Field Summary |
Fields inherited from class net.walend.collection.AbstractArrayList |
modCount |
Fields inherited from interface net.walend.collection.List |
EMPTY |
Constructor Summary | |
MutableArrayList()
|
|
MutableArrayList(Collection collection)
|
|
MutableArrayList(java.util.Collection collection)
|
|
MutableArrayList(Identitor ident)
|
|
MutableArrayList(Identitor ident,
int initialCapacity)
|
|
MutableArrayList(int initialCapacity)
|
Method Summary | |
boolean |
add(int index,
java.lang.Object ob)
Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). |
boolean |
add(java.lang.Object object)
Adds a Object to the MutableCollection. |
boolean |
addAll(Collection c)
Adds all the Objects in c to this MutableCollection by using the add() method. |
boolean |
addAll(int index,
Collection col)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). |
void |
clear()
Removes all of the Objects in this collection. |
java.lang.Object |
remove(int index)
Removes and returns the object at index in this list. |
boolean |
remove(java.lang.Object object)
Removes a Object from the MutableCollection. |
boolean |
removeAll(Collection c)
Removes all the Objects in c from this MutableCollection by using the remove() method. |
boolean |
retainAll(Collection c)
Retains only the Objects in this collection that are contained in c by using the contains() and remove() methods. |
java.lang.Object |
set(int index,
java.lang.Object ob)
Replaces the element at the specified position in this list with the specified element |
Methods inherited from class net.walend.collection.AbstractArrayList |
checkRange, checkRangeForAdd, contains, containsAll, ensureCapacity, get, getIdentitor, getJavaCollection, getJavaList, getPrincipleInterface, indexOf, indexOfSubList, isEmpty, iterator, lastIndexOf, listIterator, listIterator, sameContentsAs, sameListAs, sameStateAs, size, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.walend.collection.Collection |
contains, containsAll, getIdentitor, getJavaCollection, isEmpty, iterator, sameContentsAs, size |
Methods inherited from interface net.walend.collection.HasState |
getPrincipleInterface, sameStateAs |
Methods inherited from interface net.walend.collection.List |
get, getJavaList, indexOf, indexOfSubList, lastIndexOf, listIterator, listIterator, sameListAs |
Constructor Detail |
public MutableArrayList()
public MutableArrayList(int initialCapacity)
public MutableArrayList(Collection collection)
public MutableArrayList(java.util.Collection collection)
public MutableArrayList(Identitor ident)
public MutableArrayList(Identitor ident, int initialCapacity)
Method Detail |
public boolean add(java.lang.Object object)
add
in interface MutableCollection
add
in class AbstractArrayList
public boolean remove(java.lang.Object object)
remove
in interface MutableCollection
remove
in class AbstractArrayList
public boolean addAll(Collection c)
addAll
in interface MutableCollection
addAll
in class AbstractArrayList
public boolean removeAll(Collection c)
removeAll
in interface MutableCollection
removeAll
in class AbstractArrayList
public boolean retainAll(Collection c)
retainAll
in interface MutableCollection
retainAll
in class AbstractArrayList
public void clear()
clear
in interface MutableCollection
clear
in class AbstractArrayList
public boolean add(int index, java.lang.Object ob)
add
in interface MutableList
add
in class AbstractArrayList
java.lang.IndexOutOfBoundsException
- if the index is not in the list.public boolean addAll(int index, Collection col)
addAll
in interface MutableList
addAll
in class AbstractArrayList
java.lang.IndexOutOfBoundsException
- if the index is not in the list.public java.lang.Object remove(int index)
remove
in interface MutableList
remove
in class AbstractArrayList
java.lang.IndexOutOfBoundsException
- if the index is not in the list.public java.lang.Object set(int index, java.lang.Object ob)
set
in interface MutableList
set
in class AbstractArrayList
java.lang.IndexOutOfBoundsException
- if the index is not in the list.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |