Feed

class Feed(source)

A parsed feed: its channel fields and its entries in document order. Stable Core. Built with Feed { title = …; entries = … }, by RomeFeedParser and by a parser of your own.

link is an absolute http or https link with its fragment kept, else null. description is untrusted markup. Equality is on every field. toString() prints presence and counts, never text, and the link as scheme, host and port.

Types

Link copied to clipboard

Collects the fields of a Feed. Not thread-safe; use it only inside the factory's lambda.

Properties

Link copied to clipboard

The feed's description: untrusted markup, or null.

Link copied to clipboard

The entries, in document order.

Link copied to clipboard
val link: String?

An absolute http or https link to the feed's web page, or null.

Link copied to clipboard

The feed's title, or null.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Two Feeds are equal when their title, link, description and entries are equal.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code consistent with equals: it is computed from the same properties.

Link copied to clipboard
open override fun toString(): String

A diagnostic string for logs: whether title and description are present, the number of entries and the link as scheme, host and port, never any text. Its format is not part of the API and may change.