SwitchMapObserver(Observer<? super R> actual, Function<? super T, ? extends ObservableSource<? extends R>> mapper, int bufferSize, boolean delayErrors) { this.actual = actual; this.mapper = mapper; this.bufferSize = bufferSize; this.delayErrors = delayErrors; this.errors = new AtomicThrowable(); }
/** * Atomically adds a Throwable to this container (combining with a previous Throwable is necessary). * @param t the throwable to add * @return true if successful, false if the container has been terminated */ public boolean addThrowable(Throwable t) { return ExceptionHelper.addThrowable(this, t); }
@Override public void accept(Throwable e) { error = e; countDown(); }
@Override public Iterable<Integer> apply(Integer v) throws Exception { return new CrashingIterable(100, 1, 100); } })
/** * Atomically terminate the container and return the contents of the last * non-terminal Throwable of it. * @return the last Throwable */ public Throwable terminate() { return ExceptionHelper.terminate(this); }
@SuppressWarnings("unchecked") public OpenHashSet(int capacity, float loadFactor) { this.loadFactor = loadFactor; int c = Pow2.roundToPowerOfTwo(capacity); this.mask = c - 1; this.maxSize = (int)(loadFactor * c); this.keys = (T[])new Object[c]; }
@Override public Iterable<Integer> apply(Integer v) throws Exception { return new CrashingIterable(100, 2, 100); } })
@Override public void run() { countDown(); } }
@Override public Iterable<Integer> apply(Integer v) throws Exception { return new CrashingIterable(100, 1, 100); } })
@Override public void run() { countDown(); } }
@Override public Iterable<Integer> apply(Integer v) throws Exception { return new CrashingIterable(100, 100, 1); } })
@Override public Iterable<Integer> apply(Object v) throws Exception { return new CrashingIterable(100, 2, 100); } })
@Override public Iterable<Integer> apply(Object v) throws Exception { return new CrashingIterable(100, 100, 1); } })
@Override public Iterable<Integer> apply(Integer v) throws Exception { return new CrashingIterable(1, 100, 100); } })
@Override public Iterable<Integer> apply(Integer v) throws Exception { return new CrashingIterable(100, 100, 1); } })
@Override public Iterable<Integer> apply(Integer v) throws Exception { return new CrashingIterable(100, 1, 100); } })
@Override public Iterable<Integer> apply(Integer v) throws Exception { return new CrashingIterable(100, 2, 100); } })
@Override public Iterable<Integer> apply(Object v) throws Exception { return new CrashingIterable(100, 100, 1); } })
@Override public Iterable<Integer> apply(Integer v) throws Exception { return new CrashingIterable(100, 100, 1); } })
@Override public Iterable<Integer> apply(Object v) throws Exception { return new CrashingIterable(100, 2, 100); } })