Пример #1
0
 @Override
 public E next() {
   previous = node;
   node = node.getNext();
   return ((ListNode<E>) node).getItem();
 }
Пример #2
0
 @Override
 public void remove() {
   previous.setNext(node.getNext());
   node = previous;
 }
Пример #3
0
 @Override
 public boolean hasNext() {
   return node.getNext() != null;
 }