Associate a key to a value @param key key value @param v value -- cannot be null. @return true if it replaced a value @throws IOException on exception
(K key, V v)
| 493 | * @throws IOException on exception |
| 494 | */ |
| 495 | public synchronized boolean ioSet(K key, V v) throws IOException { |
| 496 | Objects.requireNonNull(v); |
| 497 | long newAddr = append(key, v); |
| 498 | return map.put(key, newAddr) != null; |
| 499 | } |
| 500 | |
| 501 | public synchronized V ioGetSet(K key, V v) throws IOException { |
| 502 | Objects.requireNonNull(v); |