@Test public void shouldReturnTheSecondObject() { Second<String> pair = tuple(5, "Five"); String second = pair.getSecond(); assertThat(second, is("Five")); }
@Override public S getSecond() { return second; }
Pair extends Single<R> implements Second<S>,
                   MappableSecond<S, Pair<R, ?>> { @Override public S getSecond() { return second; } }
Pair extends Single<R> implements Second<S>,
                   MappableSecond<S, Pair<R, ?>> { @Override public S getSecond() { return second; } Pair(R first, S second); }
Pair extends Single<R> implements Second<S>,
                   MappableSecond<S, Pair<R, ?>> { @Override public S getSecond() { return second; } Pair(R first, S second); static Pair<R, S> pair(R first, S second); @Override S getSecond(); @Override Pair<A, S> mapFirst(UnaryFunction<R, A> function); @Override Pair<R, A> mapSecond(UnaryFunction<S, A> function); @Override Iterable<Object> getValues(); }
Pair extends Single<R> implements Second<S>,
                   MappableSecond<S, Pair<R, ?>> { @Override public S getSecond() { return second; } Pair(R first, S second); static Pair<R, S> pair(R first, S second); @Override S getSecond(); @Override Pair<A, S> mapFirst(UnaryFunction<R, A> function); @Override Pair<R, A> mapSecond(UnaryFunction<S, A> function); @Override Iterable<Object> getValues();  }