Lines Matching defs:remove
51 * later verify that {@link PeekingIterator#remove()} removes the
52 * same elements as the reference's iterator {@code #remove()}.
159 /* Should complain on attempt to remove() after peek(). */
161 peekingIterator.remove();
162 fail("remove() should throw IllegalStateException after a peek()");
165 assertEquals("After remove() throws exception, peek should still be ok",
168 /* Should recover to be able to remove() after next(). */
170 peekingIterator.remove();
200 public void remove() {
201 iterator.remove();