(Strength keyStrength, boolean usesAccessQueue, boolean usesWriteQueue)
| 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. |