Пример #1
0
 private <T> Map<T, Long> snap(AtomicLongMap<T> atomic) {
   Map<T, Long> builder = new HashMap<T, Long>();
   for (Map.Entry<T, AtomicLong> e : atomic.underlying().entrySet()) {
     builder.put(e.getKey(), e.getValue().get());
   }
   return builder;
 }