/** * Set the expected number of results. * @param num The expected number of results to set. */ public void setNumber(int num) { this.num += num+1; // not = num because -1 for each exception when ignorefailures if(checkNotify((E)NULL, (Exception)NULL)) notifyDelegate(null); }
/** * Called when some result is available. * @param result The result. */ public void resultAvailable(E result) { if(checkNotify(result, (Exception)NULL)) notifyDelegate((Exception)NULL); }
/** * Called when an exception occurred. * @param exception The exception. */ public void exceptionOccurred(Exception exception) { if(checkNotify((E)NULL, exception)) notifyDelegate(exception); }