Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AndroidでJava8

 AndroidでJava8

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

Naoki Morioka

October 01, 2015
Tweet

More Decks by Naoki Morioka

Other Decks in Programming

Transcript

  1. … 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
  2. +BWB/FX'FBUVSFT w ϥϜμࣜ w ΠϯλʔϑΣΠεͷ࢓༷มߋ w ετϦʔϜ"1* w 0QUJPOBMͷಋೖ w

    +BWB'9 w ೔෇ͱ࣌ࠁͷ৽ͨͳ"1* w /BTIPSO+BWB4DSJQUΤϯδϯ w ฒߦॲཧͷػೳڧԽ
  3. *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
  4. 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