MCPcopy Create free account
hub / github.com/antlr/codebuff / getWeigher

Method getWeigher

output/java_guava/1.4.18/CacheBuilder.java:517–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

515 // Make a safe contravariant cast now so we don't have to do it over and over.
516
517 @SuppressWarnings("unchecked") <K1 extends K, V1 extends V> Weigher<K1, V1> getWeigher() {
518 return (Weigher<K1, V1>) MoreObjects.firstNonNull(weigher, OneWeigher.INSTANCE);
519 }
520
521 /**
522 * Specifies that each key (not value) stored in the cache should be wrapped in a

Callers 1

LocalCacheMethod · 0.45

Calls 1

firstNonNullMethod · 0.95

Tested by

no test coverage detected