KsoupElementListAdapter

class KsoupElementListAdapter(val backing: List<Element>) : AbstractKpaList<Element> (source)

Adapter exposing a group of KSoup Elements that share a tag name as a KpaList.

Extends AbstractKpaList which handles index access, size, and list enumeration. Produced by KsoupElementAdapter when a child tag occurs two or more times. Each element is exposed as a KsoupElementAdapter.

Parameters

backing

The underlying KSoup Elements in document order.

Constructors

Link copied to clipboard
constructor(backing: List<Element>)

Properties

Link copied to clipboard
val backing: List<Element>
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open operator override fun get(index: Int): KpaElement
Link copied to clipboard
open override fun toList(): List<KpaElement>