| 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()); |
nothing calls this directly
no outgoing calls
no test coverage detected