
T - the parameterization lower bounded by DynamicArray itself.V - the storage array type.E - the component type.public interface DynamicArray<T extends DynamicArray<T,V,E>,V,E> extends Cloneable
| Modifier and Type | Method and Description | 
|---|---|
int | 
capacity()
Gets the capacity. 
 | 
T | 
clear()
Clears this array. 
 | 
T | 
clone()
Clones this array. 
 | 
T | 
ensureCapacity(int capacity)
Ensures that this array has at least the given capacity. 
 | 
Class<E> | 
getComponentType()
Gets the component type. 
 | 
int | 
size()
Gets the number of elements. 
 | 
String | 
toString()
Creates a human-readable representation of this array. 
 | 
V | 
values()
Gets the storage array truncated to the current size. 
 | 
T clear()
T ensureCapacity(int capacity)
capacity - the desired capacity.int size()
int capacity()
V values()
String toString()
T clone()