src/main/java/org/apache/commons/collections4/bidimap/AbstractDualBidiMap.java [92:110]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            return last.getValue();
        }

        @Override
        public boolean hasNext() {
            return iterator.hasNext();
        }

        @Override
        public K next() {
            last = iterator.next();
            canRemove = true;
            return last.getKey();
        }

        @Override
        public void remove() {
            if (!canRemove) {
                throw new IllegalStateException("Iterator remove() can only be called once after next()");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/commons/collections4/iterators/EntrySetMapIterator.java [85:124]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return last.getValue();
    }

    /**
     * Checks to see if there are more entries still to be iterated.
     *
     * @return {@code true} if the iterator has more elements
     */
    @Override
    public boolean hasNext() {
        return iterator.hasNext();
    }

    /**
     * Gets the next <em>key</em> from the {@code Map}.
     *
     * @return the next key in the iteration
     * @throws java.util.NoSuchElementException if the iteration is finished
     */
    @Override
    public K next() {
        last = iterator.next();
        canRemove = true;
        return last.getKey();
    }

    /**
     * Removes the last returned key from the underlying {@code Map}.
     * <p>
     * This method can be called once per call to {@code next()}.
     *
     * @throws UnsupportedOperationException if remove is not supported by the map
     * @throws IllegalStateException if {@code next()} has not yet been called
     * @throws IllegalStateException if {@code remove()} has already been called
     *  since the last call to {@code next()}
     */
    @Override
    public void remove() {
        if (!canRemove) {
            throw new IllegalStateException("Iterator remove() can only be called once after next()");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



