Uses of Class
cloud.opencode.base.functional.optics.OptionalLens
Packages that use OptionalLens
Package
Description
OpenCode Functional - Functional Programming Utilities for JDK 25+
OpenCode 函数式编程工具库
Optics - Lens and other optical types for immutable data
光学类型 - 用于不可变数据的 Lens 和其他光学类型
-
Uses of OptionalLens in cloud.opencode.base.functional
Methods in cloud.opencode.base.functional that return OptionalLensModifier and TypeMethodDescriptionstatic <S,A> OptionalLens <S, A> OpenFunctional.optionalLens(Function<S, Optional<A>> getter, BiFunction<S, A, S> setter) Create an optional lens 创建可选透镜 -
Uses of OptionalLens in cloud.opencode.base.functional.optics
Methods in cloud.opencode.base.functional.optics that return OptionalLensModifier and TypeMethodDescription<B> OptionalLens<S, B> Compose with a regular lens 与常规透镜组合<B> OptionalLens<S, B> OptionalLens.andThen(OptionalLens<A, B> other) Compose with another optional lens 与另一个可选透镜组合Lens.asOptional()Convert to an OptionalLens 转换为 OptionalLens<T> OptionalLens<T, A> Compose with a regular lens (other first, then this) 与常规透镜组合(先其他,然后此)<T> OptionalLens<T, A> OptionalLens.compose(OptionalLens<T, S> other) Compose with this lens (other first, then this) 与此透镜组合(先其他,然后此)static <S,A> OptionalLens <S, A> Create from a regular lens 从常规透镜创建static <S,A> OptionalLens <S, A> OptionalLens.of(Function<S, Optional<A>> getter, BiFunction<S, A, S> setter) Create an optional lens from getter and setter 从 getter 和 setter 创建可选透镜static <S,A> OptionalLens <S, A> OptionalLens.ofNullable(Function<S, A> getter, BiFunction<S, A, S> setter) Create an optional lens from nullable getter 从可空 getter 创建可选透镜Methods in cloud.opencode.base.functional.optics with parameters of type OptionalLensModifier and TypeMethodDescription<B> OptionalLens<S, B> OptionalLens.andThen(OptionalLens<A, B> other) Compose with another optional lens 与另一个可选透镜组合<T> OptionalLens<T, A> OptionalLens.compose(OptionalLens<T, S> other) Compose with this lens (other first, then this) 与此透镜组合(先其他,然后此)