Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement