FeatureSet

value class FeatureSet<F : Feature<F>> : Featured<F>

A container for a set of features

Types

Companion
Link copied to clipboard
common
object Companion

Functions

getFeature
Link copied to clipboard
common
inline fun <T : F> getFeature(): T?
open override fun <T : F> getFeature(type: FeatureKey<T>): T?
iterator
Link copied to clipboard
common
operator fun iterator(): Iterator<F>
toString
Link copied to clipboard
common
open override fun toString(): String
with
Link copied to clipboard
common
fun with(vararg otherFeatures: F): FeatureSet<F>
fun with(otherFeatures: Iterable<F>): FeatureSet<F>
fun with(other: FeatureSet<F>): FeatureSet<F>
fun <T : F> with(feature: T, type: FeatureKey<F> = feature.key): FeatureSet<F>

Properties

features
Link copied to clipboard
common
val features: Map<FeatureKey<F>, F>

Sources

common source
Link copied to clipboard