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

Method getFactory

output/java_guava/1.4.19/LocalCache.java:564–569  ·  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 =
566 ((keyStrength == Strength.WEAK) ? WEAK_MASK : 0) | (usesAccessQueue ? ACCESS_MASK : 0)
567 | (usesWriteQueue ? WRITE_MASK : 0);
568 return factories[flags];
569 }
570
571 /**
572 * Creates a new entry.

Callers 1

LocalCacheMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected