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

Method ioGet

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

Retrieve the value associated with a specified key. @param key key value @return value @throws IOException on exception

(Object key)

Source from the content-addressed store, hash-verified

463 * @throws IOException on exception
464 */
465 public V ioGet(Object key) throws IOException {
466 Long addr = map.get(key);
467 if (addr != null) {
468 return fetch(addr, false, null).getValue();
469 }
470 return null;
471 }
472
473 /**
474 * Clear a value.

Callers 2

ioUnsetMethod · 0.95
getMethod · 0.95

Calls 2

fetchMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected