Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #33960

Re: Lambda reference?

From Sebastian <news@seyweiler.dyndns.org>
Newsgroups comp.lang.java.programmer
Subject Re: Lambda reference?
Date 2016-03-14 21:50 +0100
Organization albasani.net
Message-ID <nc7879$hlf$1@news.albasani.net> (permalink)
References <nc770d$u97$1@dont-email.me>

Show all headers | View raw


Am 14.03.2016 21:32, schrieb Rhino:
> I'm just new to Java Lambda expressions. I'm both excited and frustrated
> by the Oracle tutorials describing them: the tutorial shows how powerful
> they are and that's got me keen to know more but I'm not finding the
> detailed references I need to be able to do what I want to do.
>
> For example, they give an example that involves using a stream and a
> filter and then printing some stuff which looks something like:
>
> roster
> .stream
> .filter ....
> ... System.out.println();
>
> I'd like to know what *all* my options, not just .stream and .filter.
> I'm also curious to know what are all the things I can do on the last line.
>
> For example, I want to go through a collection and find out how many
> instances of a given agency code are in the collection but have no idea
> how to do that or where to look in the API. I just want to put that
> count in an integer for use later in the program.
>
> 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.
>

The "reference manual" would be the API docs. Not just the Stream class 
docs, you should read very carefully the java.util.stream package 
documentation: http://docs.oracle.com/javase/8/docs/api/

Maurice Naftalin's Lambda FAQ is an excellent resource:
http://www.lambdafaq.org/

There were two good introductory articles in the Oracle Java Magazine a 
while back (Oracle Java Magazine articles, which are available only to 
subscribers. Subscription is free):

Evans, Ben, Verburg, Martijn, Using Java 8 Lambda Expressions, 
March/April 2013, Oracle Java Magazine
Evans, Ben, Verburg, Martijn, Advanced Operations Using Java 8 Lambda 
Expressions, May/June 2013, Oracle Java Magazine

And here's in-depth coverage of streams by Paul Sandoz from JavaOne 
2013, San Francisco: https://www.youtube.com/watch?v=UKuFqAhDEN4

There's tons more, when you search for it.

-- Sebastian

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Lambda reference? Rhino <no_offline_contact@example.com> - 2016-03-14 16:32 -0400
  Re: Lambda reference? Sebastian <news@seyweiler.dyndns.org> - 2016-03-14 21:50 +0100
  Re: Lambda reference? Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-03-14 17:16 -0400
    Re: Lambda reference? Rhino <no_offline_contact@example.com> - 2016-03-14 18:29 -0400
    Re: Lambda reference? Eric Douglas <e.d.programmer@gmail.com> - 2016-03-16 04:53 -0700
      Re: Lambda reference? Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-03-16 08:38 -0400
        Re: Lambda reference? Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-03-16 08:45 -0400
          Re: Lambda reference? Sebastian <news@seyweiler.dyndns.org> - 2016-03-16 21:33 +0100
          Re: Lambda reference? Robert Klemme <shortcutter@googlemail.com> - 2016-03-25 18:35 +0100
            Re: Lambda reference? Eric Douglas <e.d.programmer@gmail.com> - 2016-03-28 07:06 -0700
              Re: Lambda reference? Robert Klemme <shortcutter@googlemail.com> - 2016-03-31 00:09 +0200
                Re: Lambda reference? Eric Douglas <e.d.programmer@gmail.com> - 2016-03-31 04:42 -0700
                Re: Lambda reference? Robert Klemme <shortcutter@googlemail.com> - 2016-03-31 18:35 +0200
                Re: Lambda reference? Eric Douglas <e.d.programmer@gmail.com> - 2016-03-31 11:21 -0700
  Re: Lambda reference? Rhino <no_offline_contact@example.com> - 2016-03-14 21:55 -0400

csiph-web