Guest User

Untitled

a guest
Jun 18th, 2019
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Map is defined in a class
  2. private final Map<String, A> sb = new ConcurrentHashMap<>();
  3.  
  4. public void someMethod(){
  5. Set<A> hSet = new HashSet<>();
  6. for (A a : ab){
  7. hSet.add(a..a...);
  8.  
  9. // Check if all elements added to hash Set are there in a
  10. Map
  11. // if not preset add it to Map
  12. }
  13. }
RAW Paste Data