| Modifier and Type | Method and Description |
|---|---|
Optional<S,A> |
asOptional()
|
Setter<S,A> |
asSetter()
|
Traversal<S,A> |
asTraversal()
|
<C> Lens<S,C> |
composeIso(Iso<A,C> other)
|
<C> Lens<S,C> |
composeLens(Lens<A,C> other)
|
<C> Optional<S,C> |
composeOptional(Optional<A,C> other)
|
<C> Optional<S,C> |
composePrism(Prism<A,C> other)
|
<C> Setter<S,C> |
composeSetter(Setter<A,C> other)
|
<C> Traversal<S,C> |
composeTraversal(Traversal<A,C> other)
|
A |
get(S s)
get the target of a
PLens |
static <S> Lens<S,S> |
id() |
static <S,A> Lens<S,A> |
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. |
Function<S,S> |
modify(Function<A,A> f)
modify polymorphically the target of a
PLens using a function |
<L> Function<S,Either<L,S>> |
modifyEitherF(Function<A,Either<L,A>> f)
modify polymorphically the target of a
PLens with an Applicative
function |
<C> Function<S,Function<C,S>> |
modifyFunctionF(Function<A,Function<C,A>> f)
modify polymorphically the target of a
PLens with an Applicative
function |
Function<S,Iterable<S>> |
modifyIterableF(Function<A,Iterable<A>> f)
modify polymorphically the target of a
PLens with an Applicative
function |
Function<S,Option<S>> |
modifyOptionF(Function<A,Option<A>> f)
modify polymorphically the target of a
PLens with an Applicative
function |
Function<S,Pair<S,S>> |
modifyPairF(Function<A,Pair<A,A>> f)
modify polymorphically the target of a
PLens with an Applicative
function |
Function<S,Supplier<S>> |
modifySupplierF(Function<A,Supplier<A>> f)
modify polymorphically the target of a
PLens with an Applicative
function |
Function<S,S> |
set(A a)
set polymorphically the target of a
PLens using a function |
<S1> Lens<Either<S,S1>,A> |
sum(Lens<S1,A> other)
join two
Lens with the same target |
asFold, asGetter, composeFold, composeGetter, composeIso, composeLens, composeOptional, composePrism, composeSetter, composeTraversal, pId, pLens, sumpublic Function<S,S> set(A a)
PLensPLens using a functionpublic <C> Function<S,Function<C,S>> modifyFunctionF(Function<A,Function<C,A>> f)
PLensPLens with an Applicative
functionpublic <L> Function<S,Either<L,S>> modifyEitherF(Function<A,Either<L,A>> f)
PLensPLens with an Applicative
functionpublic Function<S,Option<S>> modifyOptionF(Function<A,Option<A>> f)
PLensPLens with an Applicative
functionpublic Function<S,Iterable<S>> modifyIterableF(Function<A,Iterable<A>> f)
PLensPLens with an Applicative
functionpublic Function<S,Supplier<S>> modifySupplierF(Function<A,Supplier<A>> f)
PLensPLens with an Applicative
functionpublic Function<S,Pair<S,S>> modifyPairF(Function<A,Pair<A,A>> f)
PLensPLens with an Applicative
functionpublic Function<S,S> modify(Function<A,A> f)
PLensPLens using a functionpublic static <S> Lens<S,S> id()
Copyright © 2017 Atlassian. All rights reserved.