public class DoComp1<T1> extends DoComp
Constructor and Description |
---|
DoComp1(org.pcollections.PStack<DoBuilderModule.Entry> assigned,
java.lang.Class orgType) |
Modifier and Type | Method and Description |
---|---|
<T2> DoComp2<T1,T2> |
add(AnyM<T2> o)
Add a AnyM as next nested level in the comprehension
|
<T2 extends java.lang.String> |
add(java.io.BufferedReader o)
Add a BufferedReader as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
add(java.util.concurrent.Callable<T2> o)
Add a Callable as next nested level in the comprehension
|
DoComp2<T1,java.lang.Character> |
add(java.lang.CharSequence seq) |
<T2> DoComp2<T1,T2> |
add(java.util.Collection<T2> o)
Add a Collection as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
add(java.util.concurrent.CompletableFuture<T2> o)
Add a CompletableFuture as next nested level in the comprehension
|
<T2 extends java.lang.String> |
add(java.io.File o)
Add a File as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
add(java.lang.Iterable<T2> o)
Add a Iterable as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
add(java.util.Iterator<T2> o)
Add a Iterator as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
add(java.util.Optional<T2> o)
Add a Optional as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
add(ReactiveSeq<T2> o)
Add a TraversableM as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
add(Reader<?,T2> seq) |
<T2> DoComp2<T1,T2> |
add(java.util.function.Supplier<T2> o)
Add a Supplier as next nested level in the comprehension
|
<T2 extends java.lang.String> |
add(java.net.URL o)
Add a URL as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
addBaseStream(java.util.function.Supplier<java.util.stream.BaseStream<T2,?>> o)
Add a BaseStream as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
addStream(java.util.function.Supplier<java.util.stream.Stream<T2>> o)
Add a Stream as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
addValues(T2... values) |
DoComp1<T1> |
filter(java.util.function.Predicate<? super T1> f)
Filter data
|
DoComp2<T1,java.lang.Integer> |
times(int times) |
<T2> DoComp2<T1,T2> |
withAnyM(java.util.function.Function<? super T1,AnyM<T2>> f)
Add a AnyM as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withBaseStream(java.util.function.Function<? super T1,java.util.stream.BaseStream<T2,?>> f)
Add a BaseStream as next nested level in the comprehension
|
<T2 extends java.lang.String> |
withBufferedReader(java.util.function.Function<? super T1,java.io.BufferedReader> f)
Add a BufferedReader as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withCallable(java.util.function.Function<? super T1,java.util.concurrent.Callable<T2>> f)
Add a Callable as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withCollection(java.util.function.Function<? super T1,java.util.Collection<T2>> f)
Add a Collection as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withCompletableFuture(java.util.function.Function<? super T1,java.util.concurrent.CompletableFuture<T2>> f)
Add a CompletableFuture as next nested level in the comprehension
|
<T2 extends java.lang.String> |
withFile(java.util.function.Function<? super T1,java.io.File> f)
Add a File as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withIterable(java.util.function.Function<? super T1,java.lang.Iterable<T2>> f)
Add a Iterable as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withIterator(java.util.function.Function<? super T1,java.util.Iterator<T2>> f)
Add a Iterator as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withOptional(java.util.function.Function<? super T1,java.util.Optional<T2>> f)
Add a Optional as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withReader(java.util.function.Function<? super T1,Reader<?,? extends T2>> f)
Add a Reader as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withStream(java.util.function.Function<? super T1,java.util.stream.Stream<T2>> f)
Add a Stream as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withSupplier(java.util.function.Function<? super T1,java.util.function.Supplier<T2>> f)
Add a Supplier as next nested level in the comprehension
|
<T2> DoComp2<T1,T2> |
withTraversableM(java.util.function.Function<? super T1,ReactiveSeq<T2>> f)
Add a TraversableM as next nested level in the comprehension
|
<T2 extends java.lang.String> |
withURL(java.util.function.Function<? super T1,java.net.URL> f)
Add a URL as next nested level in the comprehension
|
<R> AnyMSeq<R> |
yield(java.util.function.Function<? super T1,? extends R> f)
Execute and Yield a result from this for comprehension using the supplied function
e.g.
|
addToAssigned, createEntry, getAssigned, getOrgType, setAssigned, yieldInternal
public DoComp1(org.pcollections.PStack<DoBuilderModule.Entry> assigned, java.lang.Class orgType)
public <T2> DoComp2<T1,T2> add(java.lang.Iterable<T2> o)
Do.add(iterable1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> add(java.util.Iterator<T2> o)
Do.add(iterator1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> addStream(java.util.function.Supplier<java.util.stream.Stream<T2>> o)
Do.add(stream1)
.addStream(()->stream2)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> addBaseStream(java.util.function.Supplier<java.util.stream.BaseStream<T2,?>> o)
> Do.add(stream1)
.addStream(()->intStream)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> add(java.util.Optional<T2> o)
Do.add(optional1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> add(java.util.concurrent.CompletableFuture<T2> o)
Do.add(completablefuture1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> add(AnyM<T2> o)
Do.add(anym1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> add(ReactiveSeq<T2> o)
Do.add(traversablem1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> add(java.util.concurrent.Callable<T2> o)
Do.add(callable1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> add(java.util.function.Supplier<T2> o)
Do.add(supplier1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> add(java.util.Collection<T2> o)
Do.add(collection1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
o
- Defines next level in comprehensionpublic <T2 extends java.lang.String> DoComp2<T1,T2> add(java.io.File o)
Do.add(list1)
.filter((String i1) -> i1>5)
.yield((String i1) -> i1);
o
- Defines next level in comprehensionpublic <T2 extends java.lang.String> DoComp2<T1,T2> add(java.net.URL o)
Do.add(list1)
.filter((String i1) -> i1>5)
.yield((String i1) -> i1);
o
- Defines next level in comprehensionpublic <T2 extends java.lang.String> DoComp2<T1,T2> add(java.io.BufferedReader o)
Do.add(list1)
.filter((String i1) -> i1>5)
.yield((String i1) -> i1);
o
- Defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withReader(java.util.function.Function<? super T1,Reader<?,? extends T2>> f)
Do.add(stream)
.withReader(i-> createReader(i))
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withIterable(java.util.function.Function<? super T1,java.lang.Iterable<T2>> f)
Do.with((Integer i1) -> iterable1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withIterator(java.util.function.Function<? super T1,java.util.Iterator<T2>> f)
Do.with((Integer i1) -> iterator1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withStream(java.util.function.Function<? super T1,java.util.stream.Stream<T2>> f)
Do.add(stream)
.withStream((Integer i1) -> stream1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withBaseStream(java.util.function.Function<? super T1,java.util.stream.BaseStream<T2,?>> f)
Do.add(stream)
.withBaseStream((Integer i1) -> stream1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withOptional(java.util.function.Function<? super T1,java.util.Optional<T2>> f)
Do.with((Integer i1) -> optional1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withCompletableFuture(java.util.function.Function<? super T1,java.util.concurrent.CompletableFuture<T2>> f)
Do.with((Integer i1) -> completablefuture1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withAnyM(java.util.function.Function<? super T1,AnyM<T2>> f)
Do.with((Integer i1) -> anym1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withTraversableM(java.util.function.Function<? super T1,ReactiveSeq<T2>> f)
Do.with((Integer i1) -> traversablem1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withCallable(java.util.function.Function<? super T1,java.util.concurrent.Callable<T2>> f)
Do.with((Integer i1) -> callable1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withSupplier(java.util.function.Function<? super T1,java.util.function.Supplier<T2>> f)
Do.with((Integer i1) -> supplier1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2> DoComp2<T1,T2> withCollection(java.util.function.Function<? super T1,java.util.Collection<T2>> f)
Do.with((Integer i1) -> collection1)
.filter((Integer i1) -> i1>5)
.yield((Integer i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2 extends java.lang.String> DoComp2<T1,T2> withFile(java.util.function.Function<? super T1,java.io.File> f)
Do.with((Integer i1) -> list1)
.filter((String i1) -> i1>5)
.yield((String i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2 extends java.lang.String> DoComp2<T1,T2> withURL(java.util.function.Function<? super T1,java.net.URL> f)
Do.with((Integer i1) -> list1)
.filter((String i1) -> i1>5)
.yield((String i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <T2 extends java.lang.String> DoComp2<T1,T2> withBufferedReader(java.util.function.Function<? super T1,java.io.BufferedReader> f)
Do.with((Integer i1) -> list1)
.filter((String i1) -> i1>5)
.yield((String i1) -> i1);
f
- Gives access to current pointers and defines next level in comprehensionpublic <R> AnyMSeq<R> yield(java.util.function.Function<? super T1,? extends R> f)
Do.add(list1)
.yield((Integer i1) -> i1);
f
- To be applied to every element in the for comprehension