MergedAssetView

An AssetView that merges assets from multiple views.

Assets are combined in order: views provided first have their assets appear first. Assets are deduplicated by ID - if the same asset ID appears in multiple views, only the first occurrence is kept.

Parameters

views

The AssetViews to merge, in order of priority

Constructors

Link copied to clipboard
constructor(first: AssetView, second: AssetView)

Convenience constructor for two views.

constructor(vararg views: AssetView)

Convenience constructor for vararg views.

constructor(views: List<AssetView>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val assets: List<Asset>

All tracked assets, in order in which they were added

Functions

Link copied to clipboard
open fun mostRecent(n: Int): AssetView

The most recently timestamped assets

Link copied to clipboard

The most recently added assets

Link copied to clipboard

Convenience method to return references. References will be converted to matryoshka tools

Link copied to clipboard
open fun since(instant: Instant): AssetView

Assets timestamped since the given instant