|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.plankton.data.AbstractPData
org.barracudamvc.plankton.data.PArrayList
public class PArrayList
This class extends AbstractPData (which provides the parental/statemap functionality) and delegates most of the List functionality back to an underlying ArrayList
Field Summary |
---|
Fields inherited from class org.barracudamvc.plankton.data.AbstractPData |
---|
inheritParents, parent, state |
Constructor Summary | |
---|---|
PArrayList()
|
Method Summary | |
---|---|
void |
add(int index,
Object el)
Inserts the specified element at the specified position in this list (optional operation). |
boolean |
add(Object el)
Appends the specified element to the end of this list (optional operation). |
boolean |
addAll(Collection c)
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). |
boolean |
addAll(int index,
Collection c)
Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
void |
clear()
Removes all of the elements from this list (optional operation). |
Object |
clone()
Returns a shallow copy of this ArrayList instance. |
boolean |
contains(Object el)
Returns true if this list contains the specified element. |
boolean |
containsAll(Collection c)
Returns true if this list contains all of the elements of the specified collection. |
boolean |
equals(Object obj)
Check object for equality. |
Object |
get(int index)
Returns the element at the specified position in this list. |
int |
hashCode()
Returns the hash code value for this list. |
int |
indexOf(Object el)
Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element. |
boolean |
isEmpty()
Returns true if this list contains no elements. |
Iterator |
iterator()
Returns an iterator over the elements in this list in proper sequence. |
int |
lastIndexOf(Object el)
Returns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element. |
ListIterator |
listIterator()
Returns a list iterator of the elements in this list (in proper sequence). |
ListIterator |
listIterator(int index)
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. |
Object |
remove(int index)
Removes the element at the specified position in this list (optional operation). |
boolean |
remove(Object el)
Removes the first occurrence in this list of the specified element (optional operation). |
boolean |
removeAll(Collection c)
Removes from this list all the elements that are contained in the specified collection (optional operation). |
boolean |
retainAll(Collection c)
Retains only the elements in this list that are contained in the specified collection (optional operation). |
Object |
set(int index,
Object el)
Replaces the element at the specified position in this list with the specified element (optional operation). |
void |
setStore(List ilist)
Set the underlying store (you only really need to use this method if you want to store the data in something other than an ArrayList, which is the default) |
int |
size()
Returns the number of elements in this list. |
List |
subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
Object[] |
toArray()
Returns an array containing all of the elements in this list in proper sequence. |
Object[] |
toArray(Object[] a)
Returns an array containing all of the elements in this list in proper sequence; the runtime type of the returned array is that of the specified array. |
Methods inherited from class org.barracudamvc.plankton.data.AbstractPData |
---|
clearState, getParent, getRootParent, getState, getStateKeys, getStateStore, isInheritParents, putState, removeState, setInheritParents, setParent |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.barracudamvc.plankton.data.PData |
---|
getParent, getRootParent, isInheritParents, setInheritParents, setParent |
Methods inherited from interface org.barracudamvc.plankton.data.StateMap |
---|
clearState, getState, getStateKeys, getStateStore, putState, removeState |
Constructor Detail |
---|
public PArrayList()
Method Detail |
---|
public void setStore(List ilist)
ilist
- the List structure to be used as the underlying
storepublic void add(int index, Object el)
add
in interface List
public boolean add(Object el)
add
in interface Collection
add
in interface List
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
public boolean addAll(int index, Collection c)
addAll
in interface List
public void clear()
clear
in interface Collection
clear
in interface List
public boolean contains(Object el)
contains
in interface Collection
contains
in interface List
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface List
public Object get(int index)
get
in interface List
public int indexOf(Object el)
indexOf
in interface List
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
public int lastIndexOf(Object el)
lastIndexOf
in interface List
public ListIterator listIterator()
listIterator
in interface List
public ListIterator listIterator(int index)
listIterator
in interface List
public Object remove(int index)
remove
in interface List
public boolean remove(Object el)
remove
in interface Collection
remove
in interface List
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface List
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface List
public Object set(int index, Object el)
set
in interface List
public int size()
size
in interface Collection
size
in interface List
public List subList(int fromIndex, int toIndex)
subList
in interface List
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
public Object clone()
clone
in class Object
public boolean equals(Object obj)
equals
in interface Collection
equals
in interface List
equals
in class Object
obj
- the object we're comparing against
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |