Interface ABAProblemDetector.AgentSlot.SlotSwap
- Enclosing class:
ABAProblemDetector.AgentSlot
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Compares and swaps a reference slot named as
ABAProblemDetector.AgentSlot.SlotRead names it.-
Method Summary
-
Method Details
-
swap
boolean swap(Object holder, @Nullable Object selector, int index, @Nullable Object expected, @Nullable Object update) - Parameters:
holder- the object or array holding the slotselector- the updater or handle that reaches it, ornullfor an elementindex- the element's index, or 0expected- the reference the slot must holdupdate- the reference to store- Returns:
- whether it swapped
-