org.eclipse.jdt.internal.compiler.apt.util
Class ManyToMany<T1,T2>

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.apt.util.ManyToMany<T1,T2>

public class ManyToMany<T1,T2>
extends Object

Manage a Map>, with reverse links so that it is possible to efficiently find all T1s that have a particular T2 associated with them. Access to the map is synchronized, so that it is possible to read and write simultaneously from multiple threads.

The map permits the null value for keys nor for value elements.

Design invariants preserved by all operations on this map are as follows: