BiDiPathLensSpec

open class BiDiPathLensSpec<OUT>(paramMeta: ParamMeta, get: LensGet<String, OUT>, set: LensSet<Request, OUT>) : PathLensSpec<OUT>

Inheritors

Constructors

Link copied to clipboard
constructor(paramMeta: ParamMeta, get: LensGet<String, OUT>, set: LensSet<Request, OUT>)

Functions

Link copied to clipboard
fun <NEXT> map(nextIn: (OUT) -> NEXT, nextOut: (NEXT) -> OUT): BiDiPathLensSpec<NEXT>

Create another BiDiPathLensSpec which applies the bi-directional transformations to the result. Any resultant Lens can be used to extract or insert the final type from/into a path segment.

fun <NEXT> map(nextIn: (OUT) -> NEXT): PathLensSpec<NEXT>

Create another PathLensSpec which applies the uni-directional transformation to the result. Any resultant Lens can only be used to extract the final type from a target path segment.

Link copied to clipboard
Link copied to clipboard
open override fun of(name: String, description: String?, metadata: Map<String, Any>): BiDiPathLens<OUT>

Create a lens for this Spec

Link copied to clipboard
fun <VALUE : Value<T>, T : Any> BiDiPathLensSpec<String>.value(vf: ValueFactory<VALUE, T>): BiDiPathLensSpec<VALUE>

Custom lens for mapping Path to values4k Value