@Test(expected = NullPointerException.class) public void shouldThrowNullPointerExceptionIfMapperSuppliedToMapFirstIsNull() throws Exception { Single<Integer> single = tuple(5); Mapper<Integer, String> mapper = null; single.mapFirst(mapper); }
@Override public <A> Single<A> mapFirst(UnaryFunction<R, A> mapper) { return single(mapper.call(first)); }
Single extends AbstractTuple implements First<R>,
                   MappableFirst<R, Single<?>> { @Override public <A> Single<A> mapFirst(UnaryFunction<R, A> mapper) { return single(mapper.call(first)); } }
Single extends AbstractTuple implements First<R>,
                   MappableFirst<R, Single<?>> { @Override public <A> Single<A> mapFirst(UnaryFunction<R, A> mapper) { return single(mapper.call(first)); } Single(R first); }
Single extends AbstractTuple implements First<R>,
                   MappableFirst<R, Single<?>> { @Override public <A> Single<A> mapFirst(UnaryFunction<R, A> mapper) { return single(mapper.call(first)); } Single(R first); static Single<R> single(R first); @Override R getFirst(); @Override Single<A> mapFirst(UnaryFunction<R, A> mapper); @Override Iterable<Object> getValues(); }
Single extends AbstractTuple implements First<R>,
                   MappableFirst<R, Single<?>> { @Override public <A> Single<A> mapFirst(UnaryFunction<R, A> mapper) { return single(mapper.call(first)); } Single(R first); static Single<R> single(R first); @Override R getFirst(); @Override Single<A> mapFirst(UnaryFunction<R, A> mapper); @Override Iterable<Object> getValues();  }