KotlinとJavaの相互運用
by
tommykw
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
ՈͷຖΛͬͱসإʹɻ ,PUMJOͱ+BWBͷ૬ޓӡ༻ ίωώτגࣜձࣾ
Slide 2
Slide 2 text
ా݈ೋ !UPNNZLX !UPNNZLX ίωώτגࣜձࣾ"OESPJE&OHJOFFS ϓϩϑΟʔϧ
Slide 3
Slide 3 text
͢༰ w ϚϚϦͷ,PUMJOಋೖ w ,PUMJOͱ+BWBͷ૬ޓӡ༻ w ࠷ޙʹ
Slide 4
Slide 4 text
ՈͷຖΛͬͱসإʹɻ ϚϚϦͷ,PUMJOಋೖ ίωώτגࣜձࣾ
Slide 5
Slide 5 text
ϚϚϦ2
Slide 6
Slide 6 text
ϚϚϦ2
Slide 7
Slide 7 text
ϚϚϦ2
Slide 8
Slide 8 text
,PUMJOಋೖ w +BWBͩͱɺෳࡶʹͳΔίʔυ͖ͬ͢ΓՄಡੑ্͕͕Δ w 4XJGU͍ͷJ04ΤϯδχΞʹͳ͡Έ͍͢จ๏ w +BWBͷ/VMM1PJOUFS&YDFQUJPOΛۦஞͰ͖Δ w σϝϦοτ͕গͳ͔ͬͨ ͳͥ,PUMJOΛಋೖͨ͠ͷ͔
Slide 9
Slide 9 text
,PUMJOಋೖ w ແཧʹ,PUMJOԽ͠ͳ͍ w ϦϑΝΫλϦϯά৽ػೳΛ࣮͢Δࡍʹ,PUMJOԽΛ͢Δ w ςετ,PUMJOͰॻ͍ͯΈΔ ,PUMJOಋೖํ
Slide 10
Slide 10 text
,PUMJOಋೖ w ݄͔Βελʔτͯ͠ಋೖྃ w ׂ͘Β͍ίʔυߦ͕ݮͬͨ w ؆ܿʹهड़Ͱ͖ΔΑ͏ʹͳͬͨ w ϒϩάΛ௨ͯ͡ೝ্͕͕ͬͨ ,PUMJOಋೖ݁Ռ
Slide 11
Slide 11 text
ՈͷຖΛͬͱসإʹɻ ,PUMJOͱ+BWBͷ૬ޓӡ༻ ίωώτגࣜձࣾ
Slide 12
Slide 12 text
,PUMJOͱ+BWBͷ૬ޓӡ༻ w 1MBUGPSN5ZQF w .BQQFE5ZQF w σϑΥϧτpOBMDMBTT w ݕࠪྫ֎ w υΩϡϝϯτ ,PUMJOͱ+BWBͷ૬ޓӡ༻
Slide 13
Slide 13 text
ՈͷຖΛͬͱসإʹɻ 1MBUGPSN5ZQF ίωώτגࣜձࣾ
Slide 14
Slide 14 text
1MBUGPSN5ZQF w 5Λද͢ w /VMM҆શͱݴΘΕ͍ͯΔ͕ɺ+BWBͱ,PUMJOͷ߹আ͘ w /VMM1PJOUFS&YDFQUJPOɺ*MMFHBM4UBUF&YDFQUJPO͕ൃੜ͠Ϋϥογϡ͢Δ w +BWBͰΞϊςʔγϣϯΛఆٛ 1MBUGPSN5ZQFʹ͍ͭͯ
Slide 15
Slide 15 text
1MBUGPSN5ZQF Ϋϥογϡ͢Δέʔε
Slide 16
Slide 16 text
1MBUGPSN5ZQF Ϋϥογϡ͢Δέʔε
Slide 17
Slide 17 text
1MBUGPSN5ZQF !/VMMBCMFΛ໌ࣔతʹఆٛ
Slide 18
Slide 18 text
1MBUGPSN5ZQF !/VMMBCMFΛ໌ࣔతʹఆٛ
Slide 19
Slide 19 text
1MBUGPSN5ZQF w +BWBଆͰ!/VMMBCMFͱ!/PO/VMMΛఆٛ͢Δ w ڥքΛҙࣝ͢Δ w ؆୯ʹΫϥογϡͯ͠͠·͏ͷͰҙ͢Δ w έʔεΘ͔Βͳ͍͕Ұ෦*%&"ͰܯࠂΛදࣔ͢Δ 1MBUGPSN5ZQF·ͱΊ
Slide 20
Slide 20 text
ՈͷຖΛͬͱসإʹɻ .BQQFE5ZQF ίωώτגࣜձࣾ
Slide 21
Slide 21 text
.BQQFEUZQF w ,PUMJOͱ+BWBͷͦΕͧΕͷܕϚοϐϯά w 1MBUGPSN5ZQFɺOVMMBCMFɺ,PUMJOݻ༗ͷܕʹϚοϐϯά w .BQQFE5ZQFͱ1MBUGPSN5ZQFͷ3ZPUB.VSPIPTIJ͞Μͷهࣄ͕ͱͯࢀߟʹͳΔ .BQQFE5ZQFʹ͍ͭͯ
Slide 22
Slide 22 text
.BQQFEUZQF .BQQFE5ZQF
Slide 23
Slide 23 text
.BQQFEUZQF .BQQFE5ZQF
Slide 24
Slide 24 text
.BQQFEUZQF .BQQFE5ZQF
Slide 25
Slide 25 text
.BQQFEUZQF w ,PUMJOͰ+BWBͷܕΛಛผʹѻ͏ w !/VMMBCMFɺ!/PU/VMMΛ͏ w 1MBUGPSN5ZQFΛ೦಄ʹஔ͖ͭͭ.BQQFE5ZQFΛҙࣝ͢Δ .BQQFE5ZQF·ͱΊ
Slide 26
Slide 26 text
ՈͷຖΛͬͱসإʹɻ σϑΥϧτpOBMDMBTT ίωώτגࣜձࣾ
Slide 27
Slide 27 text
σϑΥϧτpOBMDMBTT w ,PUMJOͷΫϥεσϑΥϧτpOBM w +BWBͱҟͳΓɺܧঝ͢Δ߹ʹPQFOΛ͚ͭΔ w Ұ෦͑ͳ͍ϥΠϒϥϦ͕͋Δ w 3FBMNɺ.PDLJUPɺ4QSJOHͳͲ σϑΥϧτpOBMDMBTTʹ͍ͭͯ
Slide 28
Slide 28 text
σϑΥϧτpOBMDMBTT 3FBMN
Slide 29
Slide 29 text
σϑΥϧτpOBMDMBTT 3FBMN
Slide 30
Slide 30 text
σϑΥϧτpOBMDMBTT w NPDLJUPWFSTJPOLPUMJOBMMPQFOΛ͏ w NPDLJUPWFSTJPO͔ΒJOMJOFNPDLNBLFSΛ༗ޮʹ͢Δ .PDLJUP
Slide 31
Slide 31 text
σϑΥϧτpOBMDMBTT .PDLJUP
Slide 32
Slide 32 text
σϑΥϧτpOBMDMBTT .PDLJUP
Slide 33
Slide 33 text
σϑΥϧτpOBMDMBTT w ඞཁͰ͋ΕదٓPQFOΛ͚͍ͭͯ͘ w LPUMJOBMMPQFOPQFOΛ༩ͯ͘͠ΕΔϓϥάΠϯΛ͏ σϑΥϧτpOBMDMBTT·ͱΊ
Slide 34
Slide 34 text
ՈͷຖΛͬͱসإʹɻ ݕࠪྫ֎ ίωώτגࣜձࣾ
Slide 35
Slide 35 text
ݕࠪྫ֎ w ,PUMJOଆͰ!5ISPXTΛఆٛ͢Δ w *%&"ͰܯࠂΛදࣔ͠ɺΫΠοΫϑΟοΫε͕Ͱ͖Δ w +BWB͔Β,PUMJOͰΫΠοΫϑΟοΫε͕ޮ͔ͳ͍ ݕࠪྫ֎ʹ͍ͭͯ
Slide 36
Slide 36 text
ݕࠪྫ֎ ,PUMJO+BWB
Slide 37
Slide 37 text
ݕࠪྫ֎ ,PUMJO+BWB
Slide 38
Slide 38 text
ݕࠪྫ֎ ,PUMJO+BWB
Slide 39
Slide 39 text
ݕࠪྫ֎ +BWB,PUMJO
Slide 40
Slide 40 text
ݕࠪྫ֎ +BWB,PUMJO
Slide 41
Slide 41 text
ݕࠪྫ֎ w ,PUMJOଆͰ!5ISPXTΛఆٛ͢Δ w +BWB͔Β,PUMJOΛݺͼग़࣌͢ʹྑ͍ํ๏ͳ͍ͩΖ͏͔ w ڥքઢΛҙࣝ͢Δ ݕࠪྫ֎·ͱΊ
Slide 42
Slide 42 text
ՈͷຖΛͬͱসإʹɻ υΩϡϝϯτ ίωώτגࣜձࣾ
Slide 43
Slide 43 text
υΩϡϝϯτ w ίϝϯτͷॻ͕ࣜ౷ҰͰ͖Δ w ίϝϯτ͕·ͱ·͍ͬͯͯίʔυ͕ಡΈ͍͢ w ίϝϯτॻ͘͜ͱʹΑͬͯಡΈ͍͢ίʔυΛҙࣝͰ͖Δ w υΩϡϝϯτΛੜͰ͖Δ υΩϡϝϯτʹ͍ͭͯ
Slide 44
Slide 44 text
υΩϡϝϯτ w +BWBͷ+BWBEPDʹ૬͢Δ w ϚʔΫμϯه๏ w +BWBEPDͱඍົʹهड़ํ๏͕ҟͳΔ w λάͷछྨҧ͏ ,%PD
Slide 45
Slide 45 text
υΩϡϝϯτ w +BWBEPDͱಉ͡ػೳΛ࣋ͭυΩϡϝϯτΤϯδϯ w ίʔυੜ͕Ͱ͖Δ w +BWBͱ,PUMJOͷڞଘϓϩδΣΫτʹରԠͰ͖Δ w WFSTJPO EPLLB
Slide 46
Slide 46 text
υΩϡϝϯτ w ,%PDೃછΈͷ͋ΔϚʔμμϯͳͷͰॻ͖͍͢ͷͰͳ͍ͩΖ͏͔ w +BWBEPDͱॻ͖ํ͕ଟগҟͳΔ w IUNMʹు͖ग़͢ࡍEPLLBΛ͏ υΩϡϝϯτ·ͱΊ
Slide 47
Slide 47 text
ՈͷຖΛͬͱসإʹɻ ϝϦοτ͚ͩͰͳ͍ ૬ޓӡ༻ʹ͍ͭͯ ίωώτגࣜձࣾ
Slide 48
Slide 48 text
ϝϦοτ͚ͩͰͳ͍૬ޓӡ༻ʹ͍ͭͯ ,PUMJOॿຊͰݴٴ͞Ε͍ͯΔ
Slide 49
Slide 49 text
ϝϦοτ͚ͩͰͳ͍૬ޓӡ༻ʹ͍ͭͯ w ৽͍͠ίʔυΛ,PUMJOʹ͢Δ w ςετ͔Βಋೖ͢Δ w ϥΠϒϥϦʔΛ,PUMJOͰॻ͍ͯಋೖ͢Δ w ஔ͖͑Δ ,PUMJOॿຊͰҎԼͷϝϦοτɺ σϝϦοτʹ͍ͭͯઆ໌͞Ε͍ͯ·ͨ͠
Slide 50
Slide 50 text
ϝϦοτ͚ͩͰͳ͍૬ޓӡ༻ʹ͍ͭͯ w ੜ࢈ੑͷߴ͞ w ίϨΫγϣϯͷૢ࡞͕ײతͰָ w ֶशίετͦΕ΄Ͳߴ͘ͳ͍ w *%&"ͷิ͕ڧྗ ૬ޓӡ༻ʹ͓͚Δ ϓϩδΣΫτಋೖʹΑΔϝϦοτ
Slide 51
Slide 51 text
ϝϦοτ͚ͩͰͳ͍૬ޓӡ༻ʹ͍ͭͯ w +BWBͱ,PUMJO྆ํΛҙࣝ͢Δඞཁ͕͋Δ w ΫϥεʹΑͬͯ+BWBΑΓίʔυྔ͕ଟ͘ͳΔ࣌͋Δ w ϨϏϡΞʔͷෛ୲ w ,PUMJOԽ͞Εͳ͍෦͕ൃੜͯ͠ϝϯςφϯείετ͕૿େͨ͠ ૬ޓӡ༻ʹ͓͚Δ ϓϩδΣΫτಋೖʹΑΔσϝϦοτ
Slide 52
Slide 52 text
ՈͷຖΛͬͱসإʹɻ ࠷ޙʹ ίωώτגࣜձࣾ
Slide 53
Slide 53 text
͍͞͝ʹ w ৽ن։ൃͰ͋Εϑϧ,PUMJOָ͕ w طଘ։ൃͰ͋Ε૬ޓؔͷਏ͕͋͞Δ w ڥքΛҙࣝ͢Δ ࠷ޙʹ
Slide 54
Slide 54 text
͍͞͝ʹ w Ҿ͖ଓ͖૬ޓӡ༻ w ͍Ͱݟͯӡ༻͍ͯ͘͠ w ,PUMJOຊମͷίϯτϦϏϡʔτ w *%&"ΛΑΓศརʹ͍͖͍ͬͯͨ ؤுΓ·͢ʂ
Slide 55
Slide 55 text
ՈͷຖΛͬͱসإʹɻ ίωώτגࣜձࣾ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠