Class BiopaxSafeSet<E extends BioPAXElement>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.biopax.paxtools.util.BiopaxSafeSet<E>
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Set<E>

public class BiopaxSafeSet<E extends BioPAXElement> extends AbstractSet<E> implements Serializable
A thread-safe Set of BioPAX objects that also prevents adding several elements having the same URI. This is backed by an internal Map (more memory but faster ~O(1) add/contains/remove operations).
See Also: