SingleItemBundle

Simple bundle holding a single item.

Constructors

Link copied to clipboard
constructor(type: MimeType<Item>, item: Item)

Properties

Link copied to clipboard
open override val includedTypes: List<MimeType<*>>

List of MimeTypes contained in the bundle

Functions

Link copied to clipboard
open operator override fun <T> contains(type: MimeType<T>): Boolean

Check whether data for the given MimeType is contained in this bundle

Link copied to clipboard
open operator override fun <T> get(type: MimeType<T>): T?

Read data for the given MimeType

Inherited functions

Link copied to clipboard
inline fun <T : Any> DataBundle.contains(): Boolean
Link copied to clipboard
inline operator fun <T : Any> DataBundle.invoke(): T?
Link copied to clipboard
open operator fun plus(other: DataBundle): CompositeBundle

Creates a CompositeBundle by joining this with the given bundle