List Class
Methods | This Package | All Packages
Provides a lightweight, dynamically sizing array.
package com.ms.wfc.util
public class List
implements Cloneable****
Remarks
The only extra overhead above the array items is 12 bytes that are used to store the increment, capacity, and version of the list. For a key-value store, see HashTable.
None of the methods in this class are synchronized to provide optimal performance. If a list is used in a multithreaded scenario, you should synchronize the list before calling functions, as shown in the following example:
public void doSomething(List list)
{
Object[] objs;
synchronized(list) {
objs = list.getAllItems();
}
// Use objs.
}