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:
Iterable<E>, Collection<E>, Set<E>

public class BiopaxSafeSet<E extends BioPAXElement> extends AbstractSet<E>
A thread-safe set of BioPAX objects that also prevents adding several elements having the same URI. It also allows to quickly get a BioPAX object by URI. This set is used internally by all multiple cardinality BioPAX object property and inverse property implementations (since v4.2, 2013).
Author:
rodche