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

Method getFactory

output/java_guava/1.4.13/LocalCache.java:558–562  ·  view source on GitHub ↗
(Strength keyStrength, boolean usesAccessQueue, boolean usesWriteQueue)

Source from the content-addressed store, hash-verified

556 static final EntryFactory[] factories = {STRONG, STRONG_ACCESS, STRONG_WRITE, STRONG_ACCESS_WRITE, WEAK, WEAK_ACCESS, WEAK_WRITE, WEAK_ACCESS_WRITE,};
557
558 static EntryFactory getFactory(Strength keyStrength, boolean usesAccessQueue, boolean usesWriteQueue) {
559 int flags = ((keyStrength == Strength.WEAK) ? WEAK_MASK : 0) | (usesAccessQueue ? ACCESS_MASK : 0)
560 | (usesWriteQueue ? WRITE_MASK : 0);
561 return factories[flags];
562 }
563
564 /**
565 * Creates a new entry.

Callers 1

LocalCacheMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected