PathLensSpec

open class PathLensSpec<out OUT>(paramMeta: ParamMeta, get: LensGet<String, OUT>)

Represents a uni-directional extraction of an entity from a target path segment.

Inheritors

Constructors

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

Functions

Link copied to clipboard
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
open fun of(name: String, description: String? = null, metadata: Map<String, Any> = emptyMap()): PathLens<OUT>