Class IntrusiveArraySet<T>

java.lang.Object
com.illumon.util.datastructures.intrusive.IntrusiveArraySet<T>
Type Parameters:
T - the type of the element we are storing.
All Implemented Interfaces:
Iterable<T>, Collection<T>, Set<T>

public class IntrusiveArraySet<T>
extends Object
implements Set<T>
An intrusive set that uses an array for its backing storage. You can insert, remove, or check for existence in O(1) time. Clearing the set is O(n); as we need to null out references. If you attempt to perform an operation element which is not in this set, but is in another set with the same adapter; then you are going to have a bad time. Tread carefully.