MCPcopy Index your code
hub / github.com/bcgit/bc-java / UnmodifiableMap

Class UnmodifiableMap

core/src/main/jdk1.1/java/util/Collections.java:301–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299 }
300
301 static class UnmodifiableMap
302 implements Map
303 {
304 private Map c;
305
306 UnmodifiableMap(Map map)
307 {
308 this.c = map;
309 }
310
311 public int size()
312 {
313 return c.size();
314 }
315
316 public boolean isEmpty()
317 {
318 return c.isEmpty();
319 }
320
321 public boolean containsKey(Object o)
322 {
323 return c.containsKey(o);
324 }
325
326 public boolean containsValue(Object o)
327 {
328 return c.containsValue(o);
329 }
330
331 public Object get(Object o)
332 {
333 return c.get(o);
334 }
335
336 public Object put(Object o, Object o2)
337 {
338 throw new UnsupportedOperationException();
339 }
340
341 public Object remove(Object o)
342 {
343 throw new UnsupportedOperationException();
344 }
345
346 public void putAll(Map map)
347 {
348 throw new UnsupportedOperationException();
349 }
350
351 public void clear()
352 {
353 throw new UnsupportedOperationException();
354 }
355
356 public Set keySet()
357 {
358 return Collections.unmodifiableSet(c.keySet());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected