Example #1
0
 public void putAll(Map<? extends K, ? extends V> map) {
   for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) {
     Checker.checkType(entry.getKey());
     Checker.checkType(entry.getValue());
     this.map.put(entry.getKey(), entry.getValue());
   }
 }
Example #2
0
 public V put(K k, V v) {
   Checker.checkType(k);
   Checker.checkType(v);
   return map.put(k, v);
 }
Example #3
0
 public boolean replace(K k, V v, V v1) {
   Checker.checkType(v1);
   return map.replace(k, v, v1);
 }
Example #4
0
 public V replace(K k, V v) {
   Checker.checkType(v);
   V ret = map.replace(k, v);
   return Checker.copyIfRequired(ret);
 }
Example #5
0
 public V setValue(V value) {
   V old = internalEntry.getValue();
   Checker.checkType(value);
   internalEntry.setValue(value);
   return old;
 }