code_junkie

Is there a Many to Many Collection in Java using Generics (Domain Model, not Persistence Layer)

Nov 13th, 2011
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. private final Map<T, List<S>> ssForTs = new HashMap<T, List<S>>();
  2. private final Map<S, List<T>> tsForSs = new HashMap<S, List<T>>();
  3.  
  4. new ManyToManyAssociations<Integer, Integer>();
Add Comment
Please, Sign In to add comment