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

Method tryWeakKeys

corpus/java/training/guava/collect/Platform.java:55–57  ·  view source on GitHub ↗

Configures the given map maker to use weak keys, if possible; does nothing otherwise (i.e., in GWT). This is sometimes acceptable, when only server-side code could generate enough volume that reclamation becomes important.

(MapMaker mapMaker)

Source from the content-addressed store, hash-verified

53 * important.
54 */
55 static MapMaker tryWeakKeys(MapMaker mapMaker) {
56 return mapMaker.weakKeys();
57 }
58
59 // TODO(cpovirk): Consider adding an ArrayDeque emulation to GWT.
60 static <E> Deque<E> newFastestDeque(int initialCapacity) {

Callers 5

ArbitraryOrderingClass · 0.95
ArbitraryOrderingClass · 0.95
ArbitraryOrderingClass · 0.95
ArbitraryOrderingClass · 0.95
ArbitraryOrderingClass · 0.95

Calls 1

weakKeysMethod · 0.45

Tested by

no test coverage detected