@Test(expected = IllegalArgumentException.class) public void testNextRejectsAnyArgumentNotInTheSequence() { sequence.next("x"); }
@Override public T next(T item) { return stepFrom(item, ONE_FORWARD); }
ListSequence implements Sequence<T> { @Override public T next(T item) { return stepFrom(item, ONE_FORWARD); } }
ListSequence implements Sequence<T> { @Override public T next(T item) { return stepFrom(item, ONE_FORWARD); } @SafeVarargs  ListSequence(T... items);  ListSequence(List<T> aList); }
ListSequence implements Sequence<T> { @Override public T next(T item) { return stepFrom(item, ONE_FORWARD); } @SafeVarargs  ListSequence(T... items);  ListSequence(List<T> aList); @Override T previous(T item); @Override T next(T item); }
ListSequence implements Sequence<T> { @Override public T next(T item) { return stepFrom(item, ONE_FORWARD); } @SafeVarargs  ListSequence(T... items);  ListSequence(List<T> aList); @Override T previous(T item); @Override T next(T item);  }