# | Line 11 | Line 11 | import java.util.concurrent.locks.*; | |
---|---|---|
11 | public class SynchronizedLinkedListQueue<E> | |
12 | extends AbstractCollection<E> implements Queue<E> { | |
13 | private final Queue<E> q = new LinkedList<E>(); | |
14 | < | |
14 | > | |
15 | public synchronized Iterator<E> iterator() { | |
16 | return q.iterator(); | |
17 | } | |
# | Line 74 | Line 74 | public class SynchronizedLinkedListQueue | |
74 | } | |
75 | ||
76 | } | |
77 | – |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |