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

Method getWeigher

output/java_guava/1.4.19/CacheBuilder.java:520–522  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

518 // Make a safe contravariant cast now so we don't have to do it over and over.
519
520 @SuppressWarnings("unchecked") <K1 extends K, V1 extends V> Weigher<K1, V1> getWeigher() {
521 return (Weigher<K1, V1>) MoreObjects.firstNonNull(weigher, OneWeigher.INSTANCE);
522 }
523
524 /**
525 * 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