Code example for ListIterator

Methods: hasPrevious

0
            this.keyIterator = keyIterator;
            this.valueIterator = valueIterator;
        } 
 
        public boolean hasNext() { 
            return keyIterator.hasPrevious();
        } 
 
        public Map.Entry<A, B> next() throws NoSuchElementException {
            return new Entry<A, B>(keyIterator.previous(), valueIterator.previous());
        } 
 
        public void remove() { 
            throw new UnsupportedOperationException();
        } 
    } 
 
    /** 
     * Class to masquerade as Map.Entry. 
     * 
     * @param <C>