AndroidでJava8

 AndroidでJava8

関西モバイルアプリ研究会 #6で発表

002c7b95e7b8f34186ffd6abaa136a99?s=128

Naoki Morioka

October 01, 2015
Tweet

Transcript

  1. "OESPJEͰ+BWB !O@NPSJPLB ؔ੢ϞόΠϧΞϓϦݚڀձ

  2. "CPVUNF w ੝Ԭঘه !O@NPSJPLB  w ϑϦϡʔגࣜձࣾͰ৭ʑͳ։ൃ΍ͬͯ·͢ αʔό αΠυ+BWB "OESPJE

    J04FUD  w Ҏલʹۀ຿ͰϖϯΪϯࣂ͍ͬͯͨ͜ͱ͕͋Γ·͢
  3. 'JSTU ,PUMJOߦ͚Δਓ͸,PUMJO΍Ζ͏ʂ

  4. "OESPJE+BWB w +BWB·ͰରԠ 4%,W  w USZXJUISFTPVSDFߏจ͸NJO4EL7FSTJPOҎ߱ Ͱར༻Մೳ

  5. "OESJE+BWB1SPCMFNT w ಗ໊ΫϥεΛΑ͘࢖͏"OESPJE։ൃͰ͸ίʔυ͕৑ ௕ w 3Y"OESPJEΛ࢖͍ͬͯΔͱ͞ΒʹݦஶʹՄಡੑ͕ Լ͕Δ w 

  6. ͚ͩͲ+BWB΋ͳΒ ·ͩ΍ΕΔ͸ͣ

  7. … final Button button = new Button(this); button.setOnClickListener(new OnClickListener() {

    public void onClick(View v) { // ΫϦοΫॲཧ } }); … … final Button button = new Button(this); button.setOnClickListener(view -> { // ΫϦοΫॲཧ }); … +BWB +BWB +BWB$PEF
  8. +BWB/FX'FBUVSFT w ϥϜμࣜ w ΠϯλʔϑΣΠεͷ࢓༷มߋ w ετϦʔϜ"1* w 0QUJPOBMͷಋೖ w

    +BWB'9 w ೔෇ͱ࣌ࠁͷ৽ͨͳ"1* w /BTIPSO+BWB4DSJQUΤϯδϯ w ฒߦॲཧͷػೳڧԽ
  9. ݁ߏଟ͍

  10. 8IZ+BWBJTOPUTVQQPSUFE w ͦ΋ͦ΋"OESPJEΞϓϦ͸+BWB7.Ͱಈ͍͍ͯΔΘ ͚Ͱ͸ͳ͍ w +BWBͷόΠτίʔυzJOWPLFEZOBNJDz +43 ʹ ͍ͭͯEY͕ରԠ͍ͯ͠ͳ͍ͷͰ͸ͳ͍͔ w

    +BWB࢓༷΋׬શʹ͸ຬ͍ͨͯ͠ͳ͍ʁ
  11. Ͳ͏ʹ͔ͳΒΜ͔ʁ

  12. 3FUSPMBNCEB IUUQTHJUIVCDPNPSGKBDLBMSFUSPMBNCEB ϥϜμࣜͳͲͷ+BWBͰίϯύΠϧ͞ΕͨόΠτίʔ υΛ+BWB PSʹ࣮ͯߦग़དྷΔΑ͏ʹ͠·͢

  13. .FDIBOJTN +BWB KBWBϑΝΠϧ +BWB DMBTTϑΝΠϧ +BWB DMBTTϑΝΠϧ "OESPJE EFYϑΝΠϧ KBWBD⾣

    BTN⾣ SFUSPMBNCEB EY⾣
  14. JOWPLFEZOBNJD ˣ JOWPLFWJSUVBMFUD

  15. 'FBUVSFT w -BNCEBFYQSFTTJPOT w .FUIPESFGFSFODFT w %FGBVMUNFUIPET4UBUJDNFUIPETPO JOUFSGBDFT Wd 

    w 5SZXJUISFTPVSDFTTUBUFNFOUT
  16. *OUSPEVDUJPO buildscript { repositories { jcenter() } dependencies { classpath

    'me.tatarka:gradle-retrolambda:3.2.3' } } repositories { jcenter() } apply plugin: 'com.android.application' apply plugin: 'me.tatarka.retrolambda' CVJMEHSBEMF
  17. *NQSFTTJPO w ϓϩμΫτʹ૊ΈࠐΜͰ໰୊ͳ͘ಈ࡞͍ͯ͠Δ w গਓ਺νʔϜͰͷར༻͕ਪ঑͞Εͦ͏ɻར༻ग़དྷͳ ͍+BWB"1*ʹ͍ͭͯࣄલʹڞ༗ͳͲඞਢ w ίʔυϨϏϡʔ͕େ෼ḿ͍ͬͯΔؾ͕͢Δ

  18. 0UIFS w 0QUJPOBMͷಋೖ⾣3Y+BWB0QUJPOBM 'VODUJPOBM +BWB HVBWB w ετϦʔϜ"1*⾣TUSFBNTVQQPSU 'VODUJPOBM +BWB

    (4$PMMFDUJPO w +BWB'9⾣+BWB'91PSUT w ೔෇ͱ࣌ࠁͷ৽"1*⾣5ISFF5FO +PEB5JNF "OESPJE
  19. ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ