| Package | Description |
|---|---|
| io.atlassian.fugue.optic | |
| io.atlassian.fugue.optic.std |
| Modifier and Type | Method and Description |
|---|---|
Lens<S,A> |
Iso.asLens()
|
<C> Lens<S,C> |
Lens.composeIso(Iso<A,C> other)
|
<C> Lens<S,C> |
Lens.composeLens(Lens<A,C> other)
|
<C> Lens<S,C> |
Iso.composeLens(Lens<A,C> other)
|
static <S> Lens<S,S> |
Lens.id() |
static <S,A> Lens<S,A> |
Lens.lens(Function<S,A> get,
Function<A,Function<S,S>> set)
create a
Lens using a pair of functions: one to get the target, one
to set the target. |
<S1> Lens<Either<S,S1>,A> |
Lens.sum(Lens<S1,A> other)
join two
Lens with the same target |
| Modifier and Type | Method and Description |
|---|---|
<C> Optional<S,C> |
Optional.composeLens(Lens<A,C> other)
|
<C> Lens<S,C> |
Lens.composeLens(Lens<A,C> other)
|
<C> Lens<S,C> |
Iso.composeLens(Lens<A,C> other)
|
<C,D> Optional<S,C> |
Prism.composeLens(Lens<A,C> other)
|
<S1> Lens<Either<S,S1>,A> |
Lens.sum(Lens<S1,A> other)
join two
Lens with the same target |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Lens<Pair<A,B>,B> |
PairOptics._right() |
static <A,B> Lens<Pair<A,B>,A> |
PairOptics.left() |
Copyright © 2016 Atlassian. All rights reserved.