Code example for ListIterator

Methods: add

0
            this.it = it;
        } 
 
        @Override 
        public void add(DocumentModel o) {
            it.add(o);
        } 
 
        @Override 
        public boolean hasNext() { 
            return it.hasNext();
        } 
 
        @Override 
        public boolean hasPrevious() { 
            return it.hasPrevious();
        } 
 
        @Override 
        public DocumentModel next() { 
            return it.next();