All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qbcps.util.collections.ArraySet Maven / Gradle / Ivy

There is a newer version: 2.7.1
Show newest version
package com.qbcps.util.collections;
/*
 * File copyright 8/14/13 by Stephen Beitzel
 */

import java.util.ArrayList;
import java.util.Collection;

/**
 * Set implementation that preserves the order of items as they are added.
 * Backing implementation is an ArrayList and a HashSet
 *
 * @author Stephen Beitzel <[email protected]>
 */
public class ArraySet extends ListSet {

    public ArraySet() {
        super();
        _list = new ArrayList<>();
    }

    public ArraySet(Collection objects) {
        super();
        _list = new ArrayList<>(objects.size());
        addAll(objects);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy