public final class Lens<T,R>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
<V> Lens<T,V> |
compose(Lens<R,V> other) |
R |
get(T target) |
Operator1<T> |
modify(Operator1<R> mapper) |
Operator1<T> |
modify(R newValue) |
static <T,R> Lens<T,R> |
of(Function1<T,R> getter,
Function2<T,R,T> setter) |
Function1<R,T> |
set(T target) |
T |
set(T target,
R value) |