@Test public void shouldConstructASingleWithTheSpecifiedValue() throws Exception { String value = "5"; Single<String> expected = new Single<String>(value); Single<String> actual = single(value); assertThat(actual, is(expected)); }
public static <R> Single<R> single(R first) { return new Single<R>(first); }
Single extends AbstractTuple implements First<R>,
                   MappableFirst<R, Single<?>> { public static <R> Single<R> single(R first) { return new Single<R>(first); } }
Single extends AbstractTuple implements First<R>,
                   MappableFirst<R, Single<?>> { public static <R> Single<R> single(R first) { return new Single<R>(first); } Single(R first); }
Single extends AbstractTuple implements First<R>,
                   MappableFirst<R, Single<?>> { public static <R> Single<R> single(R first) { return new Single<R>(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<?>> { public static <R> Single<R> single(R first) { return new Single<R>(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();  }