Class HashedList<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
com.pnfsoftware.jeb.util.collect.HashedList<E>
Type Parameters:
E - list's object type
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>

@Ser public class HashedList<E> extends AbstractList<E>
A List type suitable for long lists of unique items for which presence checks are often required. For typical list implementations, contains(Object) is in O(N) and therefore slow for long lists.

Limitations: Neither duplicate (per equals) nor null entries are allowed. Methods throw NullPointerException on attempts to insert null entries, and IllegalArgumentException on attempts to insert duplicates.

This class is not thread-safe. This class is serializable.