final class DeqIterator Item implements Iterator Item final Iterator I

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
final class DeqIterator<Item> implements Iterator<Item> {
final Iterator<Item> liter;
public DeqIterator(Iterator<Item> l) {
liter = l;
}
@Override
public boolean hasNext() {
return liter.hasNext();
}
@Override
public Item next() {
if (!hasNext())
throw new NoSuchElementException();
return liter.next();
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
}