static <L,R> Lens.Simple<Either<L,R>,Maybe<L>> |
EitherLens._left() |
Convenience static factory method for creating a lens over left values, wrapping them in a Maybe .
|
static <L,R> Lens.Simple<Either<L,R>,Maybe<R>> |
EitherLens._right() |
Convenience static factory method for creating a lens over right values, wrapping them in a Maybe .
|
static <X,CX extends java.util.Collection<X>> Lens.Simple<CX,CX> |
CollectionLens.asCopy(Fn1<? super CX,? extends CX> copyFn) |
Convenience static factory method for creating a lens that focuses on a copy of a Collection , given
a function that creates the copy.
|
static <X> Lens.Simple<java.util.List<X>,java.util.List<X>> |
ListLens.asCopy() |
Convenience static factory method for creating a lens over a copy of a list.
|
static <K,V> Lens.Simple<java.util.Map<K,V>,java.util.Map<K,V>> |
MapLens.asCopy() |
A lens that focuses on a copy of a Map.
|
static <V> Lens.Simple<V,Maybe<V>> |
MaybeLens.asMaybe() |
Convenience static factory method for creating a lens that focuses on a value as a Maybe .
|
static <X,CX extends java.util.Collection<X>> Lens.Simple<CX,java.util.Set<X>> |
CollectionLens.asSet(Fn1<? super CX,? extends CX> copyFn) |
Convenience static factory method for creating a lens that focuses on an arbitrary Collection as a
Set .
|
static <X,CX extends java.util.Collection<X>> Lens.Simple<CX,java.util.stream.Stream<X>> |
CollectionLens.asStream(Fn1<? super CX,? extends CX> copyFn) |
Convenience static factory method for creating a lens that focuses on a Collection as a Stream.
|
static <A> Lens.Simple<java.util.Set<A>,java.lang.Boolean> |
SetLens.contains(A a) |
A lens that focuses on whether a Set contains some value a .
|
static <A,SetA extends java.util.Set<A>> Lens.Simple<SetA,java.lang.Boolean> |
SetLens.contains(Fn1<? super SetA,? extends SetA> copyFn,
A a) |
A lens that focuses on whether a Set contains some value a .
|
static <E,List extends HList.HCons<?,?>> Lens.Simple<List,E> |
HListLens.elementAt(Index<E,List> index) |
Focus invariantly on the element at the specified Index in an HList .
|
static <X> Lens.Simple<java.util.List<X>,Maybe<X>> |
ListLens.elementAt(int index) |
Convenience static factory method for creating a lens that focuses on an element in a list at a particular index.
|
static <X> Lens.Simple<java.util.List<X>,X> |
ListLens.elementAt(int index,
X defaultValue) |
Convenience static factory method for creating a lens that focuses on an element in a list at a particular index,
returning defaultValue if there is no value at that index.
|
static <Head,Tail extends HList> Lens.Simple<HList.HCons<Head,? extends Tail>,Head> |
HListLens.head() |
Focus on the head of an HList .
|
static <A> Lens.Simple<java.lang.Iterable<A>,Maybe<A>> |
IterableLens.head() |
A lens focusing on the head of a given Iterable .
|
static <K,V> Lens.Simple<java.util.Map<K,V>,java.util.Map<V,K>> |
MapLens.inverted() |
A lens that focuses on the inverse of a map (keys and values swapped).
|
static <K,V> Lens.Simple<java.util.Map<K,V>,java.util.Set<K>> |
MapLens.keys() |
A lens that focuses on the keys of a map.
|
static <K,V,V2> Lens.Simple<java.util.Map<K,V>,java.util.Map<K,V2>> |
MapLens.mappingValues(Iso<V,V,V2,V2> iso) |
A lens that focuses on a map while mapping its values with the mapping Iso .
|
static <Head,Tail extends HList> Lens.Simple<HList.HCons<Head,? extends Tail>,Tail> |
HListLens.tail() |
Focus on the tail of an HList .
|
static <A> Lens.Simple<java.lang.Iterable<A>,java.lang.Iterable<A>> |
IterableLens.tail() |
A lens focusing on the tail of an Iterable .
|
static <A> Lens.Simple<HMap,Maybe<A>> |
HMapLens.valueAt(TypeSafeKey<?,A> key) |
|
static <K,V> Lens.Simple<java.util.Map<K,V>,Maybe<V>> |
MapLens.valueAt(K k) |
A lens that focuses on a value at a key in a map, as a Maybe .
|
static <K,V> Lens.Simple<java.util.Map<K,V>,V> |
MapLens.valueAt(K k,
V defaultValue) |
A lens that focuses on a value at a key in a map, falling back to defaultV if the value is missing.
|
static <K,V> Lens.Simple<java.util.Map<K,V>,java.util.Collection<V>> |
MapLens.values() |
A lens that focuses on the values of a map.
|