public final class RecyclableArrayList
extends java.util.ArrayList<java.lang.Object>
null
elements to be added.限定符和类型 | 方法和说明 |
---|---|
void |
add(int index,
java.lang.Object element) |
boolean |
add(java.lang.Object element) |
boolean |
addAll(java.util.Collection<?> c) |
boolean |
addAll(int index,
java.util.Collection<?> c) |
boolean |
insertSinceRecycled()
Returns
true if any elements where added or set. |
static RecyclableArrayList |
newInstance()
Create a new empty
RecyclableArrayList instance |
static RecyclableArrayList |
newInstance(int minCapacity)
Create a new empty
RecyclableArrayList instance with the given capacity. |
boolean |
recycle()
Clear and recycle this instance.
|
java.lang.Object |
set(int index,
java.lang.Object element) |
public static RecyclableArrayList newInstance()
RecyclableArrayList
instancepublic static RecyclableArrayList newInstance(int minCapacity)
RecyclableArrayList
instance with the given capacity.public boolean addAll(java.util.Collection<?> c)
addAll
在接口中 java.util.Collection<java.lang.Object>
addAll
在接口中 java.util.List<java.lang.Object>
addAll
在类中 java.util.ArrayList<java.lang.Object>
public boolean addAll(int index, java.util.Collection<?> c)
addAll
在接口中 java.util.List<java.lang.Object>
addAll
在类中 java.util.ArrayList<java.lang.Object>
public boolean add(java.lang.Object element)
add
在接口中 java.util.Collection<java.lang.Object>
add
在接口中 java.util.List<java.lang.Object>
add
在类中 java.util.ArrayList<java.lang.Object>
public void add(int index, java.lang.Object element)
add
在接口中 java.util.List<java.lang.Object>
add
在类中 java.util.ArrayList<java.lang.Object>
public java.lang.Object set(int index, java.lang.Object element)
set
在接口中 java.util.List<java.lang.Object>
set
在类中 java.util.ArrayList<java.lang.Object>
public boolean insertSinceRecycled()
true
if any elements where added or set. This will be reset once recycle()
was called.public boolean recycle()