public class DoComp2<T1,T2>
extends com.aol.cyclops.comprehensions.donotation.typed.DoComp
| Constructor and Description |
|---|
DoComp2(org.pcollections.PStack<com.aol.cyclops.comprehensions.donotation.typed.Entry> assigned,
java.lang.Class orgType) |
| Modifier and Type | Method and Description |
|---|---|
<T3> DoComp3<T1,T2,T3> |
add(com.aol.cyclops.monad.AnyM<T3> o)
Add a AnyM as next nested level in the comprehension
|
<T3 extends java.lang.String> |
add(java.io.BufferedReader o)
Add a BufferedReader as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
add(java.util.concurrent.Callable<T3> o)
Add a Callable as next nested level in the comprehension
|
DoComp3<T1,T2,java.lang.Character> |
add(java.lang.CharSequence seq) |
<T3> DoComp3<T1,T2,T3> |
add(java.util.Collection<T3> o)
Add a Collection as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
add(java.util.concurrent.CompletableFuture<T3> o)
Add a CompletableFuture as next nested level in the comprehension
|
<T3 extends java.lang.String> |
add(java.io.File o)
Add a File as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
add(java.lang.Iterable<T3> o)
Add a Iterable as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
add(java.util.Iterator<T3> o)
Add a Iterator as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
add(java.util.Optional<T3> o)
Add a Optional as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
add(com.aol.cyclops.sequence.SequenceM<T3> o)
Add a TraversableM as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
add(java.util.function.Supplier<T3> o)
Add a Supplier as next nested level in the comprehension
|
<T3 extends java.lang.String> |
add(java.net.URL o)
Add a URL as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
addBaseStream(java.util.function.Supplier<java.util.stream.BaseStream<T3,?>> o)
Add a Stream as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
addStream(java.util.function.Supplier<java.util.stream.Stream<T3>> o)
Add a Stream as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
addValues(T3... values) |
DoComp2<T1,T2> |
filter(java.util.function.Function<T1,java.util.function.Function<T2,java.lang.Boolean>> f)
Filter data
|
<T3> DoComp3<T1,T2,T3> |
monad(<any> monad) |
DoComp3<T1,T2,java.lang.Integer> |
times(int o) |
<T3> DoComp3<T1,T2,T3> |
withAnyM(java.util.function.Function<T1,java.util.function.Function<T2,com.aol.cyclops.monad.AnyM<T3>>> f)
Add a AnyM as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withBaseStream(java.util.function.Function<T1,java.util.function.Function<T2,java.util.stream.BaseStream<T3,?>>> f)
Add a BaseStream as next nested level in the comprehension
|
<T3 extends java.lang.String> |
withBufferedReader(java.util.function.Function<T1,java.util.function.Function<T2,java.io.BufferedReader>> f)
Add a BufferedReader as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withCallable(java.util.function.Function<T1,java.util.function.Function<T2,java.util.concurrent.Callable<T3>>> f)
Add a Callable as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withCollection(java.util.function.Function<T1,java.util.function.Function<T2,java.util.Collection<T3>>> f)
Add a Collection as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withCompletableFuture(java.util.function.Function<T1,java.util.function.Function<T2,java.util.concurrent.CompletableFuture<T3>>> f)
Add a CompletableFuture as next nested level in the comprehension
|
<T3 extends java.lang.String> |
withFile(java.util.function.Function<T1,java.util.function.Function<T2,java.io.File>> f)
Add a File as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withIterable(java.util.function.Function<T1,java.util.function.Function<T2,java.lang.Iterable<T3>>> f)
Add a Iterable as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withIterator(java.util.function.Function<T1,java.util.function.Function<T2,java.util.Iterator<T3>>> f)
Add a Iterator as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withMonad(java.util.function.Function<T1,java.util.function.Function<T2,<any>>> f)
Add a Javaslang Monad as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withOptional(java.util.function.Function<T1,java.util.function.Function<T2,java.util.Optional<T3>>> f)
Add a Optional as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withStream(java.util.function.Function<T1,java.util.function.Function<T2,java.util.stream.Stream<T3>>> f)
Add a Stream as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withSupplier(java.util.function.Function<T1,java.util.function.Function<T2,java.util.function.Supplier<T3>>> f)
Add a Supplier as next nested level in the comprehension
|
<T3> DoComp3<T1,T2,T3> |
withTraversableM(java.util.function.Function<T1,java.util.function.Function<T2,com.aol.cyclops.sequence.SequenceM<T3>>> f)
Add a TraversableM as next nested level in the comprehension
|
<T3 extends java.lang.String> |
withURL(java.util.function.Function<T1,java.util.function.Function<T2,java.net.URL>> f)
Add a URL as next nested level in the comprehension
|
<R> com.aol.cyclops.monad.AnyM<R> |
yield(java.util.function.Function<T1,java.util.function.Function<T2,R>> f)
Execute and Yield a result from this for comprehension using the supplied
function
e.g.
|
public DoComp2(org.pcollections.PStack<com.aol.cyclops.comprehensions.donotation.typed.Entry> assigned,
java.lang.Class orgType)
public <T3> DoComp3<T1,T2,T3> add(java.lang.Iterable<T3> o)
Do.add(iterable1).add(iterable2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> add(java.util.Iterator<T3> o)
Do.add(iterator1).add(iterator2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> addStream(java.util.function.Supplier<java.util.stream.Stream<T3>> o)
Do.add(stream1).addStream(stream2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> addBaseStream(java.util.function.Supplier<java.util.stream.BaseStream<T3,?>> o)
Do.add(stream1).add(stream2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> add(java.util.Optional<T3> o)
Do.add(optional1).add(optional2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> add(java.util.concurrent.CompletableFuture<T3> o)
Do.add(completablefuture1).add(completablefuture2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> add(com.aol.cyclops.monad.AnyM<T3> o)
Do.add(anym1).add(anym2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> add(com.aol.cyclops.sequence.SequenceM<T3> o)
Do.add(traversablem1).add(traversablem2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> add(java.util.concurrent.Callable<T3> o)
Do.add(callable1).add(callable2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> add(java.util.function.Supplier<T3> o)
Do.add(supplier1).add(supplier2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> add(java.util.Collection<T3> o)
Do.add(collection1).add(collection2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3 extends java.lang.String> DoComp3<T1,T2,T3> add(java.io.File o)
Do.add(list1).add(list2)
.filter((String i1)->(String i2) -> i1>5)
.yield((String i1)->(String i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3 extends java.lang.String> DoComp3<T1,T2,T3> add(java.net.URL o)
Do.add(list1).add(list2)
.filter((String i1)->(String i2) -> i1>5)
.yield((String i1)->(String i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3 extends java.lang.String> DoComp3<T1,T2,T3> add(java.io.BufferedReader o)
Do.add(list1).add(list2)
.filter((String i1)->(String i2) -> i1>5)
.yield((String i1)->(String i2) -> i1+i2);
o - Defines next level in comprehensionpublic <T3> DoComp3<T1,T2,T3> withIterable(java.util.function.Function<T1,java.util.function.Function<T2,java.lang.Iterable<T3>>> f)
Do.with((Integer i1) -> iterable1).with((Integer i1)->(Integer i2) -> iterable2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withIterator(java.util.function.Function<T1,java.util.function.Function<T2,java.util.Iterator<T3>>> f)
Do.with((Integer i1) -> iterator1).with((Integer i1)->(Integer i2) -> iterator2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withStream(java.util.function.Function<T1,java.util.function.Function<T2,java.util.stream.Stream<T3>>> f)
Do.with((Integer i1) -> stream1).with((Integer i1)->(Integer i2) -> stream2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withBaseStream(java.util.function.Function<T1,java.util.function.Function<T2,java.util.stream.BaseStream<T3,?>>> f)
Do.with((Integer i1) -> stream1).with((Integer i1)->(Integer i2) -> stream2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withOptional(java.util.function.Function<T1,java.util.function.Function<T2,java.util.Optional<T3>>> f)
Do.with((Integer i1) -> optional1).with((Integer i1)->(Integer i2) -> optional2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withMonad(java.util.function.Function<T1,java.util.function.Function<T2,<any>>> f)
Do.withOptional((Integer i1) -> optional1)
.withMonad((Integer i1)->(Integer i2) -> Arrqy.ofAll(i1+2,3,i2))
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withCompletableFuture(java.util.function.Function<T1,java.util.function.Function<T2,java.util.concurrent.CompletableFuture<T3>>> f)
Do.with((Integer i1) -> completablefuture1).with((Integer i1)->(Integer i2) -> completablefuture2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withAnyM(java.util.function.Function<T1,java.util.function.Function<T2,com.aol.cyclops.monad.AnyM<T3>>> f)
Do.with((Integer i1) -> anym1).with((Integer i1)->(Integer i2) -> anym2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withTraversableM(java.util.function.Function<T1,java.util.function.Function<T2,com.aol.cyclops.sequence.SequenceM<T3>>> f)
Do.with((Integer i1) -> traversablem1).with((Integer i1)->(Integer i2) -> traversablem2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withCallable(java.util.function.Function<T1,java.util.function.Function<T2,java.util.concurrent.Callable<T3>>> f)
Do.with((Integer i1) -> callable1).with((Integer i1)->(Integer i2) -> callable2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withSupplier(java.util.function.Function<T1,java.util.function.Function<T2,java.util.function.Supplier<T3>>> f)
Do.with((Integer i1) -> supplier1).with((Integer i1)->(Integer i2) -> supplier2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3> DoComp3<T1,T2,T3> withCollection(java.util.function.Function<T1,java.util.function.Function<T2,java.util.Collection<T3>>> f)
Do.with((Integer i1) -> collection1).with((Integer i1)->(Integer i2) -> collection2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3 extends java.lang.String> DoComp3<T1,T2,T3> withFile(java.util.function.Function<T1,java.util.function.Function<T2,java.io.File>> f)
Do.with((Integer i1) -> list1).with((Integer i1)->(Integer i2) -> list2)
.filter((String i1)->(String i2) -> i1>5)
.yield((String i1)->(String i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3 extends java.lang.String> DoComp3<T1,T2,T3> withURL(java.util.function.Function<T1,java.util.function.Function<T2,java.net.URL>> f)
Do.with((Integer i1) -> list1).with((Integer i1)->(Integer i2) -> list2)
.filter((String i1)->(String i2) -> i1>5)
.yield((String i1)->(String i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <T3 extends java.lang.String> DoComp3<T1,T2,T3> withBufferedReader(java.util.function.Function<T1,java.util.function.Function<T2,java.io.BufferedReader>> f)
Do.with((Integer i1) -> list1).with((Integer i1)->(Integer i2) -> list2)
.filter((String i1)->(String i2) -> i1>5)
.yield((String i1)->(String i2) -> i1+i2);
f - Gives access to current pointers and defines next level in
comprehensionpublic <R> com.aol.cyclops.monad.AnyM<R> yield(java.util.function.Function<T1,java.util.function.Function<T2,R>> f)
Do.add(list1).add(list2)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - To be applied to every element in the for comprehensionpublic DoComp2<T1,T2> filter(java.util.function.Function<T1,java.util.function.Function<T2,java.lang.Boolean>> f)
Do.add(list1).add(list2)
.filter((Integer i1)->(Integer i2) -> i1>5)
.yield((Integer i1)->(Integer i2) -> i1+i2);
f - To be applied to every element in the for comprehension