JJUG Java 8 Lambda ハンズオン #jjug
![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
(int x, int y) -> {return x + y;}; → (x, y) -> {return x + y;}; → (x, y) -> x + y; #jjug
2012-07-25 19:38:52![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
lambda式 (引数,引数) -> {処理} interface Adder { int add(int x, int y); } Adder adder3 = (x,y) -> x+y; #jjug
2012-07-25 19:39:45![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
RT @OraBlogs_jp: [お知らせ]本日の #JJUG ナイトセミナーに参加される方は、エレベータから降りたところに掲示されている案内をよく読んで下さい。Oracle社内ミーティングの部屋に間違って入ってくる人が多数いらっしゃるようです。
2012-07-25 19:41:59![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
違った。overrideしている場合はメソッドが一つだけとしても関数型インターフェースじゃないとのこと。 RT @sugarlife: ObjectにあるメソッドでもOverrideする場合であれば、実装すべきメソッドにカウントされる。 #jjug
2012-07-25 19:44:24![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
実質的final 新しいスコープは導入しない ローカル変数にアクセスするにはfinalが必要. 再代入しないローカル変数をfinalとみなす. #jjug
2012-07-25 19:46:09![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
effectively final ルールを破ると、コンパイル時に怒られる。 local variables referenced from a lambda expression must be 'effectively final' #jjug
2012-07-25 19:47:02![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
実質的final=再代入しないローカル変数=rev48ではコンパイル時にリテラルに変換される でも今後のrevで変わるかもよ! #jjug
2012-07-25 19:47:38![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
コンパイラが頑張っている.実質的finalなので,finalを省略できる.でもfinal書いた方がいいw #jjug
2012-07-25 19:47:39