@Test public void forEach(@Mock Consumer1<Object> callback) { Tuple1<String> tuple = Tuple.of("value"); tuple.forEach(callback); verify(callback).accept("value"); }
public static <A> Tuple1<A> of(A value1) { return new Tuple1<>(value1); }
Tuple1 implements Tuple, Tuple1Of<A>, Serializable { public static <A> Tuple1<A> of(A value1) { return new Tuple1<>(value1); } }
Tuple1 implements Tuple, Tuple1Of<A>, Serializable { public static <A> Tuple1<A> of(A value1) { return new Tuple1<>(value1); } private  Tuple1(A value1); }
Tuple1 implements Tuple, Tuple1Of<A>, Serializable { public static <A> Tuple1<A> of(A value1) { return new Tuple1<>(value1); } private  Tuple1(A value1); A get1(); @Override Sequence<Object> toSequence(); Tuple1<B> map(Function1<? super A, ? extends B> mapper); static Tuple1<A> of(A value1); R applyTo(Function1<? super A, ? extends R> function); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Tuple1 implements Tuple, Tuple1Of<A>, Serializable { public static <A> Tuple1<A> of(A value1) { return new Tuple1<>(value1); } private  Tuple1(A value1); A get1(); @Override Sequence<Object> toSequence(); Tuple1<B> map(Function1<? super A, ? extends B> mapper); static Tuple1<A> of(A value1); R applyTo(Function1<? super A, ? extends R> function); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }