Code example for ListIterator

Methods: hasPrevious, previous, previousIndex

0
            } 
            return new EntryImpl(offset + source.nextIndex(), source.next());
        } 
 
        public Entry previous() { 
            if (!source.hasPrevious()) {
                throw new NoSuchElementException();
            } 
            return new EntryImpl(offset + source.previousIndex(), source.previous());
        } 
 
        public int nextIndex() { 
            return offset + source.nextIndex();
        } 
 
        public int previousIndex() { 
            return offset + source.previousIndex();
        } 
 
        public boolean hasNext() { 
            return source.hasNext();