(K key, String field, Serializable val)
| 399 | } |
| 400 | |
| 401 | public void set(K key, String field, Serializable val) throws NoSuchFieldException { |
| 402 | synchronized (this) { |
| 403 | int i = getFieldId(field); |
| 404 | if (i < 0) { |
| 405 | throw new NoSuchFieldException(field); |
| 406 | } |
| 407 | if (!hasRecord(key)) { |
| 408 | throw new NoSuchElementException("key:" + key); |
| 409 | } |
| 410 | |
| 411 | records.get(key)[i] = val; |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | public void insert(K key) { |
| 416 | synchronized (this) { |
no test coverage detected