public class ReferenceCountedTrigger extends Object
Constructor and Description |
---|
ReferenceCountedTrigger() |
ReferenceCountedTrigger(Runnable firstIncRunnable,
Runnable lastDecRunnable,
Runnable errorRunanable) |
Modifier and Type | Method and Description |
---|---|
void |
addLastDecrementRunnable(Runnable r)
Adds a runnable to the last-decrement runnables list.
|
void |
decrement()
Decrements the ref count
|
Animator.AnimatorListener |
decrementOnAnimationEnd()
Convenience method to decrement this trigger as a animator listener.
|
void |
flushLastDecrementRunnables()
Runs and clears all the last-decrement runnables now.
|
int |
getCount()
Returns the current ref count
|
void |
increment()
Increments the ref count
|
Runnable |
incrementAsRunnable()
Convenience method to increment this trigger as a runnable
|
public void increment()
public Runnable incrementAsRunnable()
public void addLastDecrementRunnable(Runnable r)
public void decrement()
public void flushLastDecrementRunnables()
public Animator.AnimatorListener decrementOnAnimationEnd()
public int getCount()