Example usage for org.apache.commons.collections FastArrayList setFast

List of usage examples for org.apache.commons.collections FastArrayList setFast

Introduction

In this page you can find the example usage for org.apache.commons.collections FastArrayList setFast.

Prototype

public void setFast(boolean fast) 

Source Link

Document

Sets whether this list will operate in fast mode.

Usage

From source file:de.xplib.xdbm.util.Config.java

/**
 * Adds a database uri for a special jar file to the config.
 * /*from   w w w.j a va 2 s .c o  m*/
 * @param jarIn The jar file which is the key.
 * @param uriIn The database uri.
 */
public void putDatabaseURI(final String jarIn, final String uriIn) {
    if (!this.dbUris.containsKey(jarIn)) {
        FastArrayList list = new FastArrayList();
        list.setFast(true);
        this.dbUris.put(jarIn, list);
    }
    ArrayList uris = (ArrayList) this.dbUris.get(jarIn);
    uris.add(uriIn);
}

From source file:org.apache.torque.manager.AbstractBaseManager.java

/**
 *
 * @param key/*from   w w  w .  j  a v a2s  .  c o  m*/
 * @return A subset of the list identified by <code>key</code>.
 */
private synchronized FastArrayList createSubsetList(String key) {
    FastArrayList list = null;
    if (listenersMap.containsKey(key)) {
        list = listenersMap.get(key);
    } else {
        list = new FastArrayList();
        list.setFast(true);
        listenersMap.put(key, list);
    }
    return list;
}