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

Method getFactory

output/java_guava/1.4.17/LocalCache.java:564–568  ·  view source on GitHub ↗
(Strength keyStrength, boolean usesAccessQueue, boolean usesWriteQueue)

Source from the content-addressed store, hash-verified

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

Callers 1

LocalCacheMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected