public class JDSList extends ArrayList
modCount| 构造器和说明 |
|---|
JDSList(Class clazz) |
JDSList(Class clazz,
Collection c) |
JDSList(Class clazz,
int initialCapacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 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.
|
boolean |
addAll(int index,
Collection c)
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, forEach, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringcontainsAll, equals, hashCodeparallelStream, streampublic JDSList(Class clazz)
public JDSList(Class clazz, Collection c)
public JDSList(Class clazz, int initialCapacity)
public void add(int index,
Object element)
public boolean add(Object element)
public boolean addAll(Collection c)
addAll 在接口中 CollectionaddAll 在接口中 ListaddAll 在类中 ArrayListc - the elements to be inserted into this list.NullPointerException - if the specified collection is null.public boolean addAll(int index,
Collection c)
public Object get(int index)
public Object set(int index, Object element)
Copyright © 2023 onecode. All rights reserved.