Package org.bitcoinj.utils
Class ListenerRegistration<T>
java.lang.Object
org.bitcoinj.utils.ListenerRegistration<T>
A simple wrapper around a listener and an executor, with some utility methods.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
removeFromList
(T listener, List<? extends ListenerRegistration<T>> list) Remove wrapped listener
-
Field Details
-
listener
-
executor
-
-
Constructor Details
-
ListenerRegistration
-
-
Method Details
-
removeFromList
Remove wrapped listener- Type Parameters:
T
-- Parameters:
listener
- listener to removelist
- list to remove it from- Returns:
- true if the listener was removed, else false.
-