Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Rhino Newsgroups: comp.lang.java.programmer Subject: Re: Lambda reference? Date: Mon, 14 Mar 2016 21:55:54 -0400 Organization: A noiseless patient Spider Lines: 46 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 15 Mar 2016 01:53:15 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="30ccb22752576586cadf10c6ca0a52b5"; logging-data="1505"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+a7A9dUsrm1B58Qe1NNWt3KpyoHlCTa4Q=" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: Cancel-Lock: sha1:kZnL6kQ8O3NA3F6EeZGlXiaZGSk= Xref: csiph.com comp.lang.java.programmer:33968 On 3/14/2016 7:34 PM, Stefan Ram wrote: > Rhino writes: >> I'd like to know what *all* my options[ are], not just .stream and .filter. > > docs.oracle.com/javase/8/docs/api > > Since anyone can write new pipeline operations, the options > are unlimited. But your options are not restricted to Java, > *all* options include the possibility that you might travel > to Japan and start to work as a fisher and cook there. > How would I write that in Java? ;-) >> I'm also curious to know what are all the things I can do on the last line. > > A terminal operation, such as forEach, produces a non-stream > result, such as a primitive value (like a double value), a > collection, or in the case of forEach, no value at all. > > For example: > > Intermediate: map > Intermediate: sorted > Terminal: forEach > Terminal: reduce > Terminal: collect > Terminal: collect with multi args > Terminal: collect with groupingBy > Terminal: count > groupingBy? Very very nice; that's exactly what I'm looking for. :-) >> I assume there is a reference manual somewhere that tells me all the >> things I can do with my collection using Lambdas but I'm not seeing any >> pointer to that manual in the Oracle material. > > docs.oracle.com/javase/tutorial/collections/streams/ > Excellent! I had trouble finding this in the API. Now I've got a chance to figure this out.... Thank you, Stefan! -- Rhino