SHARE
TWEET

Untitled

a guest Jun 18th, 2019 63 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top