Commits

Stepan Koltsov  committed d77de3f

implement ListF.reverseIterator().remove()

  • Participants
  • Parent commits f8c6124

Comments (0)

Files changed (1)

File src/main/java/ru/yandex/bolts/collection/impl/AbstractListF.java

     public IteratorF<E> reverseIterator() {
         final ListIterator<E> listIterator = listIterator(size());
         return new AbstractIteratorF<E>() {
+            @Override
             public boolean hasNext() {
                 return listIterator.hasPrevious();
             }
 
+            @Override
             public E next() {
                 return listIterator.previous();
             }
+
+            @Override
+            public void remove() {
+                listIterator.remove();
+            }
         };
     }