| Package | Description |
|---|---|
| io.atlassian.fugue.optic | |
| io.atlassian.fugue.optic.std |
| Modifier and Type | Method and Description |
|---|---|
<C> Iso<S,C> |
Iso.composeIso(Iso<A,C> other)
|
<C> Iso<Pair<S,C>,Pair<A,C>> |
Iso.first() |
static <S> Iso<S,S> |
Iso.id()
create an
Iso between any type and itself. |
static <S,A> Iso<S,A> |
Iso.iso(Function<S,A> get,
Function<A,S> reverseGet)
create an
Iso using a pair of functions: one to get the target and
one to get the source. |
<S1,A1> Iso<Pair<S,S1>,Pair<A,A1>> |
Iso.product(Iso<S1,A1> other)
pair two disjoint
Iso |
Iso<A,S> |
Iso.reverse() |
<C> Iso<Pair<C,S>,Pair<C,A>> |
Iso.second() |
| Modifier and Type | Method and Description |
|---|---|
<C> Optional<S,C> |
Optional.composeIso(Iso<A,C> other)
|
<C> Lens<S,C> |
Lens.composeIso(Iso<A,C> other)
|
<C> Setter<S,C> |
Setter.composeIso(Iso<A,C> other)
|
<C> Iso<S,C> |
Iso.composeIso(Iso<A,C> other)
|
<C,D> Prism<S,C> |
Prism.composeIso(Iso<A,C> other)
|
<S1,A1> Iso<Pair<S,S1>,Pair<A,A1>> |
Iso.product(Iso<S1,A1> other)
pair two disjoint
Iso |
| Modifier and Type | Method and Description |
|---|---|
static <A> Iso<Option<A>,Optional<A>> |
OptionOptics.optionToOptional() |
static <A,B> Iso<Pair<A,B>,Map.Entry<A,B>> |
PairOptics.pairToEntry() |
Copyright © 2016 Atlassian. All rights reserved.