Package com.github.ygimenez.model
Class ActionReference
Class used for checking whether a library action (read: paginate, categorize, buttonize or lazy-paginate action)
was already disposed of.
This is a weak reference, so its value might become null at any moment.
This is a weak reference, so its value might become null at any moment.
- See Also:
WeakReference
-
Constructor Summary
ConstructorsConstructorDescriptionActionReference(String referent)Creates a newActionReferencefor tracking a specific event key. -
Method Summary
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Constructor Details
-
ActionReference
Creates a newActionReferencefor tracking a specific event key. Not for external usage.- Parameters:
referent- The key referring to an existing library event.
-
-
Method Details
-
get
Retrieves the referred action key if it is still active, or null otherwise. -
check
public boolean check()Utility method to check whether the referred action is still active.
Same as doingget() != null.- Returns:
- Whether the action is still active or not.
-