commonMain.com.fleeksoft.ksoup.ported.CustomMutableMapIterator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ksoup-jvm Show documentation
Show all versions of ksoup-jvm Show documentation
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