Modifier and Type | Method and Description |
---|---|
static <A> Lens.Simple<Set<A>,Boolean> |
contains(A a)
A lens that focuses on whether a
Set contains some value a . |
static <A,SetA extends Set<A>> |
contains(Fn1<? super SetA,? extends SetA> copyFn,
A a)
A lens that focuses on whether a
Set contains some value a . |
public static <A,SetA extends Set<A>> Lens.Simple<SetA,Boolean> contains(Fn1<? super SetA,? extends SetA> copyFn, A a)
Set
contains some value a
. Note that copyFn
is
used to avoid mutating the Set
in question.A
- the value typeSetA
- the set to focus oncopyFn
- the copy functiona
- the value in questionSet
public static <A> Lens.Simple<Set<A>,Boolean> contains(A a)
Set
contains some value a
. Like
contains(Fn1, Object)
but with an implicit copy function that produces HashSet
s
.A
- the value typea
- the value in questionSet