question: public static SimEvent findFirstDeferred ( int src , Predicate p ) { SimEvent ev = null ; Iterator < SimEvent > iterator = deferred . iterator ( ) ; while ( iterator . hasNext ( ) ) { ev = iterator . next ( ) ; if ( ev . getDestination ( ) == src && p . match ( ev ) ) { break ; } } return ev ; }
target:  Find first deferred event matching a predicate.