@Test @DisplayName("return value from Either on iteration") void returnValueOnIteration() { Iterator<Message> iterator = tuple.iterator(); assertEquals(a, iterator.next()); assertEquals(b.getA(), iterator.next()); assertFalse(iterator.hasNext()); }
@Override public final @NonNull Iterator<Message> iterator() { Iterator<Message> result = new ExtractingIterator(values); return result; }
Tuple implements Iterable<Message>, Serializable { @Override public final @NonNull Iterator<Message> iterator() { Iterator<Message> result = new ExtractingIterator(values); return result; } }
Tuple implements Iterable<Message>, Serializable { @Override public final @NonNull Iterator<Message> iterator() { Iterator<Message> result = new ExtractingIterator(values); return result; } protected  Tuple(Object... values); }
Tuple implements Iterable<Message>, Serializable { @Override public final @NonNull Iterator<Message> iterator() { Iterator<Message> result = new ExtractingIterator(values); return result; } protected  Tuple(Object... values); @Override final @NonNull Iterator<Message> iterator(); @Override final int hashCode(); @Override final boolean equals(Object obj); }
Tuple implements Iterable<Message>, Serializable { @Override public final @NonNull Iterator<Message> iterator() { Iterator<Message> result = new ExtractingIterator(values); return result; } protected  Tuple(Object... values); @Override final @NonNull Iterator<Message> iterator(); @Override final int hashCode(); @Override final boolean equals(Object obj);  }