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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> booleanremoveFromList(T listener, List<? extends ListenerRegistration<T>> list) Remove wrapped listener
- 
Field Details- 
listener
- 
executor
 
- 
- 
Constructor Details- 
ListenerRegistration
 
- 
- 
Method Details- 
removeFromListRemove wrapped listener- Type Parameters:
- T-
- Parameters:
- listener- listener to remove
- list- list to remove it from
- Returns:
- true if the listener was removed, else false.
 
 
-