public final class Prism<T,R>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
<V> Prism<T,V> |
compose(Prism<R,V> other) |
Option<R> |
getOption(T target) |
Either<T,R> |
getOrModify(T target) |
Operator1<T> |
modify(Operator1<R> mapper) |
OptionHandler<T,T> |
modifyOption(Operator1<R> mapper) |
static <T,R> Prism<T,R> |
of(OptionHandler<T,R> getOption,
Function1<R,T> reverseGet) |
T |
reverseGet(R value) |
Operator1<T> |
set(R value) |
OptionHandler<T,T> |
setOption(R value) |
public static <T,R> Prism<T,R> of(OptionHandler<T,R> getOption, Function1<R,T> reverseGet)
public OptionHandler<T,T> modifyOption(Operator1<R> mapper)
public OptionHandler<T,T> setOption(R value)