LceStateUtils<DATA_1 extends Object> extension

LceState extensions

on

Methods

catchToLce<DATA_2 extends Object>(LceState<DATA_2> block(LceState<DATA_1>)) LceState<DATA_2>
Runs transformation block catching any error and wrapping it to LceError:
combine<DATA_2 extends Object, DATA_3 extends Object>(LceState<DATA_2> other, DATA_3? mapper(DATA_1? data1, DATA_2? data2)) LceState<DATA_3>
Combines two Lce states. Here is the result state matrix
map<DATA_2 extends Object>(DATA_2 mapper(DATA_1)) LceState<DATA_2>
Maps data in LceState with mapper
mapEmptyData(LceState<DATA_1> block(LceState<DATA_1>)) LceState<DATA_1>
Substitutes a state with empty data with empty data with state produced by block
mapEmptyDataItem(DATA_1 block()) LceState<DATA_1>
Substitutes an item in a state with empty data with item produced by block