api

http4k / org.http4k.lens / BiDiLens

BiDiLens

class BiDiLens<in IN : Any, FINAL> : LensInjector<FINAL, IN>, Lens<IN, FINAL>

A BiDiLens provides the bi-directional extraction of an entity from a target, or the insertion of an entity into a target.

Constructors

Name Summary
<init> A BiDiLens provides the bi-directional extraction of an entity from a target, or the insertion of an entity into a target.BiDiLens(meta: Meta, get: (IN) -> FINAL, lensSet: (FINAL, IN) -> IN)

Functions

Name Summary
invoke Lens operation to set the value into the targetoperator fun <R : IN> invoke(value: FINAL, target: R): R