All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.fleeksoft.ksoup.ported.CustomMutableMapIterator.kt Maven / Gradle / Ivy

Go to download

Ksoup is a Kotlin Multiplatform library for working with HTML and XML, and offers an easy-to-use API for URL fetching, data parsing, extraction, and manipulation using DOM and CSS selectors.

The newest version!
package com.fleeksoft.ksoup.ported

import com.fleeksoft.ksoup.nodes.Element

public class ElementIterator(private val iterator: MutableIterator) : MutableIterator by iterator {
    private var currentEntry: Element? = null

    override fun next(): Element {
        currentEntry = iterator.next()
        return currentEntry!!
    }

    override fun remove() {
        iterator.remove()
        currentEntry?.remove()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy