@ Override public boolean isCancelled ( ) { boolean canceled = false ; for ( Future < FUTURE_TYPE > future : futureList ) { if ( ! future . isDone ( ) ) { return false ; } canceled |= future . isCancelled ( ) ; } return canceled ; }
Method returns true if at least one subfutures was canceled . In case there are still processing futures remaining than false is returned in any case . False is returned as well when all futures are done but none was canceled .