(K key, String field)
| 388 | } |
| 389 | |
| 390 | public Object get(K key, String field) throws NoSuchFieldException { |
| 391 | int i = getFieldId(field); |
| 392 | if (i < 0) { |
| 393 | throw new NoSuchFieldException(field); |
| 394 | } |
| 395 | if (!hasRecord(key)) { |
| 396 | throw new NoSuchElementException("key:" + key); |
| 397 | } |
| 398 | return records.get(key)[i]; |
| 399 | } |
| 400 | |
| 401 | public void set(K key, String field, Serializable val) throws NoSuchFieldException { |
| 402 | synchronized (this) { |
no test coverage detected