Lines Matching defs:remove
52 * later verify that {@link PeekingIterator#remove()} removes the
53 * same elements as the reference's iterator {@code #remove()}.
169 /* Should complain on attempt to remove() after peek(). */
171 peekingIterator.remove();
172 fail("remove() should throw IllegalStateException after a peek()");
175 assertEquals("After remove() throws exception, peek should still be ok",
178 /* Should recover to be able to remove() after next(). */
180 peekingIterator.remove();
210 public void remove() {
211 iterator.remove();