示例#1
0
 public Collection<V> values() {
   Collection<V> copied = new ArrayList<>();
   for (V v : map.values()) {
     copied.add(Checker.copyIfRequired(v));
   }
   return copied;
 }
示例#2
0
 public Set<K> keySet() {
   Set<K> copied = new HashSet<>();
   for (K k : map.keySet()) {
     copied.add(Checker.copyIfRequired(k));
   }
   return copied;
 }
示例#3
0
 public V remove(Object o) {
   return Checker.copyIfRequired(map.remove(o));
 }
示例#4
0
 public V get(Object o) {
   return Checker.copyIfRequired(map.get(o));
 }
示例#5
0
 public V replace(K k, V v) {
   Checker.checkType(v);
   V ret = map.replace(k, v);
   return Checker.copyIfRequired(ret);
 }
示例#6
0
 public V getValue() {
   return Checker.copyIfRequired(internalEntry.getValue());
 }
示例#7
0
 public K getKey() {
   return Checker.copyIfRequired(internalEntry.getKey());
 }