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