ConstantChain

class ConstantChain<out T>(value: T) : Chain<T>

A chain that repeats the same value

Constructors

ConstantChain
Link copied to clipboard
common
fun <out T> ConstantChain(value: T)

Functions

collect
Link copied to clipboard
common
open suspend override fun collect(collector: FlowCollector<T>)
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
fork
Link copied to clipboard
common
open override fun fork(): Chain<T>
Create a copy of current chain state.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
next
Link copied to clipboard
common
open suspend override fun next(): T
Generate next value, changing state if needed
toString
Link copied to clipboard
common
open fun toString(): String

Properties

value
Link copied to clipboard
common
val value: T