public class XWorkList extends ArrayList
buildBean
method.modCount
Constructor and Description |
---|
XWorkList(Class clazz) |
XWorkList(Class clazz,
int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object element)
Inserts the specified element at the specified position in this list.
|
boolean |
add(Object element)
Appends the specified element to the end of this list.
|
boolean |
addAll(Collection collection)
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.
|
boolean |
addAll(int index,
Collection collection)
Inserts all of the elements in the specified Collection into this list, starting at the
specified position.
|
boolean |
contains(Object element) |
Object |
get(int index)
Returns the element at the specified position in this list.
|
Object |
set(int index,
Object element)
Replaces the element at the specified position in this list with the specified element.
|
clear, clone, ensureCapacity, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public XWorkList(Class clazz)
public XWorkList(Class clazz, int initialCapacity)
public void add(int index, Object element)
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
This method is guaranteed to work since it will create empty beans to fill the gap between the current list size and the requested index to enable the element to be set. This method also performs any necessary type conversion.
public boolean add(Object element)
Appends the specified element to the end of this list.
This method performs any necessary type conversion.
public boolean addAll(Collection collection)
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. The behavior of this operation is undefined if the specified Collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified Collection is this list, and this list is nonempty.)
This method performs any necessary type conversion.
addAll
in interface Collection
addAll
in interface List
addAll
in class ArrayList
collection
- the elements to be inserted into this list.NullPointerException
- if the specified collection is null.public boolean addAll(int index, Collection collection)
Inserts all of the elements in the specified Collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified Collection's iterator.
This method is guaranteed to work since it will create empty beans to fill the gap between the current list size and the requested index to enable the element to be set. This method also performs any necessary type conversion.
public Object get(int index)
Returns the element at the specified position in this list.
An object is guaranteed to be returned since it will create empty beans to fill the gap between the current list size and the requested index.
public Object set(int index, Object element)
Replaces the element at the specified position in this list with the specified element.
This method is guaranteed to work since it will create empty beans to fill the gap between the current list size and the requested index to enable the element to be set. This method also performs any necessary type conversion.
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.