register a new listenerlist object . this can be used to monitor freeing of listeners and find memory leaks . the objects are held by a weak reference , allowing them to be garbage-collected . concode_field_sep WeakReference<Object> reference concode_elem_sep long registrationTime concode_elem_sep int listenerCallCount concode_elem_sep List<MemoryData> objects concode_elem_sep int collectableCallCount concode_elem_sep List<WeakReference<ListenerList<?>>> listenerLists concode_elem_sep int PURGE_CALL_COUNT concode_elem_sep Logger log concode_field_sep long getRegistrationTime concode_elem_sep void purgeListeners concode_elem_sep List<MemoryData> getRemainingCollectableObjects concode_elem_sep void collectable concode_elem_sep List<ListenerList<?>> getRemainingListenerLists concode_elem_sep void purgeCollectables concode_elem_sep WeakReference<Object> getReference
void function ( ListenerList < ? > arg0 ) { listenerLists . add ( new WeakReference < ListenerList < ? >> ( arg0 ) ) ; listenerCallCount ++ ; if ( listenerCallCount % PURGE_CALL_COUNT == 0 ) { purgeListeners ( ) ; } }