1 11 package org.eclipse.jdi.internal.event; 12 13 14 import java.util.ListIterator ; 15 16 import com.sun.jdi.event.Event; 17 import com.sun.jdi.event.EventIterator; 18 19 25 public class EventIteratorImpl implements EventIterator { 26 27 private ListIterator fIterator; 28 29 32 public EventIteratorImpl(ListIterator iter) { 33 fIterator = iter; 34 } 35 36 39 public Event nextEvent() { 40 return (Event)fIterator.next(); 41 } 42 43 46 public boolean hasNext() { 47 return fIterator.hasNext(); 48 } 49 50 53 public Object next() { 54 return fIterator.next(); 55 } 56 57 61 public void remove() { 62 throw new UnsupportedOperationException (EventMessages.EventIteratorImpl_EventSets_are_unmodifiable_1); 63 } 64 } 65 | Popular Tags |