MCPcopy Create free account
hub / github.com/cschanck/single-file-java / ioUnset

Method ioUnset

src/main/java/org/sfj/ChiseledMap.java:479–486  ·  view source on GitHub ↗

Clear a value. @param key key value @return prior value @throws IOException on exception

(K key)

Source from the content-addressed store, hash-verified

477 * @throws IOException on exception
478 */
479 public synchronized V ioUnset(K key) throws IOException {
480 V p = ioGet(key);
481 if (p != null) {
482 append(key, null);
483 map.remove(key);
484 }
485 return p;
486 }
487
488 /**
489 * Associate a key to a value

Callers 1

removeMethod · 0.95

Calls 3

ioGetMethod · 0.95
appendMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected