/** * Creates a new Index and adds every member of c to it. * * @param c A collection of objects */ public HashIndex(Collection<? extends E> c) { this(); addAll(c); }
public HashIndex(Index<? extends E> index) { this(); // TODO: this assumes that no index supports deletion addAll(index.objectsList()); }
public HashIndex(Index<? extends E> index) { this(); addAll(index.objectsList()); }