ArticlesBlockSource

Which articles an ArticlesBlock shows.

Built through the factories on the companion object. Two blocks on the same screen built from equal sources share a single request, wherever they sit.

Types

Link copied to clipboard
object Companion

The sets of articles a block can be pointed at.

Functions

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

Two sources are equal when they ask for the same articles. What makes two blocks share one request, and what tells a block its content has to be resolved again.

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

Consistent with equals: sources asking for the same articles hash alike.

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

The query the source resolves to — for logs and test failures.