protected void fireKNNsRemoved ( DBIDs removals , DBIDs updates ) { KNNChangeEvent e = new KNNChangeEvent ( this , KNNChangeEvent . Type . DELETE , removals , updates ) ; Object [ ] listeners = listenerList . getListenerList ( ) ; for ( int i = listeners . length - 2 ; i >= 0 ; i -= 2 ) { if ( listeners [ i ] == KNNListener . class ) { ( ( KNNListener ) listeners [ i + 1 ] ) . kNNsChanged ( e ) ; } } }
Informs all registered KNNListener that existing kNNs have been removed and as a result some kNNs have been changed .