E
- the element type.public static class ArrayList extends Object
This implementation differs from JDK 1.5 ArrayList
in terms of
capacity management. There is no speed advantage to pre-allocating array
sizes in JavaScript, so this implementation does not include any of the
capacity and "growth increment" concepts in the standard ArrayList class.
Although ArrayList(int)
accepts a value for the initial
capacity of the array, this constructor simply delegates to
ArrayList()
. It is only present for compatibility with JDK
1.5's API.
Copyright © 2018. All rights reserved.