Uses of Class
cloud.opencode.base.functional.optics.Lens
Packages that use Lens
Package
Description
OpenCode Functional - Functional Programming Utilities for JDK 25+
OpenCode 函数式编程工具库
Optics - Lens and other optical types for immutable data
光学类型 - 用于不可变数据的 Lens 和其他光学类型
Record Utilities - Functional utilities for Java Records
Record 工具 - Java Record 的函数式工具
-
Uses of Lens in cloud.opencode.base.functional
Methods in cloud.opencode.base.functional that return LensModifier and TypeMethodDescriptionstatic <S,A> Lens <S, A> OpenFunctional.lens(Function<S, A> getter, BiFunction<S, A, S> setter) Create a lens 创建透镜OpenFunctional.recordLens(Class<R> recordClass, String componentName) Create a lens for a record component 为 record 组件创建透镜 -
Uses of Lens in cloud.opencode.base.functional.optics
Methods in cloud.opencode.base.functional.optics that return LensModifier and TypeMethodDescriptionCompose with another lens (this lens first, then other) 与另一个透镜组合(先应用此透镜,然后应用其他)Compose with another lens (other lens first, then this) 与另一个透镜组合(先应用其他,然后应用此透镜)static <S,A> Lens <S, A> Lens.forRecord(Function<S, A> getter, BiFunction<S, A, S> constructor) Create a lens for a record component 为 record 组件创建透镜static <S> Lens<S, S> Lens.identity()Create an identity lens 创建恒等透镜static <S,A> Lens <S, A> Lens.of(Function<S, A> getter, BiFunction<S, A, S> setter) Create a lens from getter and setter 从 getter 和 setter 创建透镜Methods in cloud.opencode.base.functional.optics with parameters of type LensModifier and TypeMethodDescriptionCompose with another lens (this lens first, then other) 与另一个透镜组合(先应用此透镜,然后应用其他)<B> OptionalLens<S, B> Compose with a regular lens 与常规透镜组合Compose with another lens (other lens first, then this) 与另一个透镜组合(先应用其他,然后应用此透镜)<T> OptionalLens<T, A> Compose with a regular lens (other first, then this) 与常规透镜组合(先其他,然后此)static <S,A> OptionalLens <S, A> Create from a regular lens 从常规透镜创建 -
Uses of Lens in cloud.opencode.base.functional.record
Methods in cloud.opencode.base.functional.record that return LensModifier and TypeMethodDescriptionCreate a lens for a record component 为 record 组件创建透镜Methods in cloud.opencode.base.functional.record that return types with arguments of type Lens