MCPcopy Index your code
hub / github.com/wyouflf/xUtils3 / safeSizeOf

Method safeSizeOf

xutils/src/main/java/org/xutils/cache/LruCache.java:249–255  ·  view source on GitHub ↗
(K key, V value)

Source from the content-addressed store, hash-verified

247 }
248
249 private int safeSizeOf(K key, V value) {
250 int result = sizeOf(key, value);
251 if (result < 0) {
252 throw new IllegalStateException("Negative size: " + key + "=" + value);
253 }
254 return result;
255 }
256
257 /**
258 * Returns the size of the entry for {@code key} and {@code value} in

Callers 4

getMethod · 0.95
putMethod · 0.95
trimToSizeMethod · 0.95
removeMethod · 0.95

Calls 1

sizeOfMethod · 0.95

Tested by

no test coverage detected