{"id":22847,"date":"2020-12-21T09:00:56","date_gmt":"2020-12-21T00:00:56","guid":{"rendered":"https:\/\/mole-kingdom.com\/wpbl\/?p=22847"},"modified":"2020-12-21T10:25:41","modified_gmt":"2020-12-21T01:25:41","slug":"%e3%82%a8%e3%82%af%e3%82%b9%e3%83%86%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%b3%e6%8b%a1%e5%bc%b5-kotlin","status":"publish","type":"post","link":"https:\/\/mole-kingdom.com\/wpbl\/2020\/12\/21\/22847.html","title":{"rendered":"\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3(\u62e1\u5f35) : kotlin"},"content":{"rendered":"<p><span class=\"f_s\">\u203b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u5168\u3066\"Target platform: JVMRunning on kotlin v. 1.4.20\"\u306e\u3082\u306e\u3002\u5143\u30da\u30fc\u30b8\u3068\u540c\u3058\u3088\u3046\u306b\u8868\u8a18\u3055\u305b\u308b\u306e\u304c\u9762\u5012\u306a\u306e\u3067\u3053\u3053\u3067\u8868\u8a18\u3059\u308b\uff57<\/span><\/p>\n<p><span class=\"f_s\">\u203b\u3044\u3064\u3082\u901a\u308a\u306e\u539f\u6587\u7121\u8996\u304c\u3061\u306e\u8d85\u8a33\u304c\u591a\u304f\u306a\u3063\u305f\u3002\u306a\u3093\u304b\u539f\u6587\u306e\u8868\u73fe\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u306e\u3067\u9069\u5f53\u306b\u8d85\u8a33\u3057\u305f\u304c\u3001\u52d8\u9055\u3044\u3057\u3066\u308b\u90e8\u5206\u3082\u591a\u3005\u3042\u308b\u3068\u601d\u3046(\uff89\u2200`)<\/span><\/p>\n<p><span class=\"f_s\">\u203b\u4fee\u98fe\u5b50(qualifier)\u306e\u8a00\u8449\u306e\u4f7f\u3044\u65b9\u304c\u3061\u3087\u3063\u3068\u7406\u89e3\u51fa\u6765\u306a\u3044\u3002\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8.\u30e1\u30bd\u30c3\u30c9()\u300d\u3068\u3044\u3046\u6642\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30e1\u30bd\u30c3\u30c9()\u306e\u4fee\u98fe\u5b50\u3068\u547c\u3076\u306e\u3060\u308d\u3046\u304b\uff1f \u4fee\u98fe\u8a9e\u53e5\u3067\u3082\u306a\u3093\u304b\u5909\u3060\u3057\u3002\u52a0\u3048\u3066\u8a00\u3046\u3068modifier\u3068\u306e\u9055\u3044\u306f\u4f55\u3060\u308d\u3046\u304b\uff1f<\/span><\/p>\n<hr>\n<p class=\"outline02\"><a href=\"https:\/\/kotlinlang.org\/docs\/reference\/extensions.html\" rel=\"noopener\" target=\"_blank\">Extensions<\/a><\/p>\n<p>Kotlin\u306f\u30af\u30e9\u30b9\u7d99\u627f\u3084Decorator\u306a\u3069\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u65b0\u3057\u3044\u6a5f\u80fd\u306b\u3088\u3063\u3066\u30af\u30e9\u30b9\u3092\u62e1\u5f35\u3059\u308b\u80fd\u529b\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3(\u62e1\u5f35\/\u62e1\u5f35\u6a5f\u80fd)\u3068\u547c\u3070\u308c\u308b\u7279\u5225\u306a\u5ba3\u8a00\u3092\u4ecb\u3057\u3066\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u5185\u5bb9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066\u65b0\u3057\u3044\u95a2\u6570\u3092\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u95a2\u6570\u306f\u5143\u306e\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308b\u304b\u306e\u3088\u3046\u306b\u901a\u5e38\u306e\u65b9\u6cd5\u3067\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u306f\u62e1\u5f35\u95a2\u6570\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u65e2\u5b58\u306e\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066\u65b0\u3057\u3044\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u62e1\u5f35\u30d7\u30ed\u30d1\u30c6\u30a3\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p class=\"outline03\">\u62e1\u5f35\u95a2\u6570<\/p>\n<p>\u62e1\u5f35\u95a2\u6570\u3092\u5ba3\u8a00\u3059\u308b\u306b\u306f\u3001\u30ec\u30b7\u30fc\u30d0(\u8ffd\u52a0\u3092\u53d7\u3051\u308b\u3001\u3064\u307e\u308a\u62e1\u5f35\u3057\u305f\u3044\u5bfe\u8c61)\u306e\u578b\u540d\u306e\u5f8c\u308d\u306b\u8ffd\u52a0\u3059\u308b\u95a2\u6570\u540d\u3068\u51e6\u7406\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306fMutableList<Int>\u306bswap\u95a2\u6570\u3092\u8ffd\u52a0\u3059\u308b\u4f8b\u3067\u3059\u3002: swap \u4ea4\u63db\u3059\u308b<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nfun MutableList&lt;Int&gt;.swap(index1: Int, index2: Int) {\r\n    val tmp = this&#x5B;index1] \/\/ 'this'\u306f\u8ffd\u52a0\u5148\u306eMutableList\u3092\u6307\u3057\u307e\u3059\u3002\r\n    this&#x5B;index1] = this&#x5B;index2]\r\n    this&#x5B;index2] = tmp\r\n}\r\n<\/pre>\n<p>\u62e1\u5f35\u95a2\u6570\u5185\u306ethis\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u3001\u30ec\u30b7\u30fc\u30d0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30c9\u30c3\u30c8\u306e\u524d\u306b\u8a18\u8ff0\u3055\u308c\u305f\u578b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u3092\u6307\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u4efb\u610f\u306eMutableList<Int>\u3067\u5b9a\u7fa9\u3057\u305f\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002:<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nval list = mutableListOf(1, 2, 3)\r\nlist.swap(0, 2) \/\/ swap()\u5185\u306e'this'\u306f 'list'\u306e\u5024\u3092\u4fdd\u6301\u3057\u307e\u3059.\r\n<\/pre>\n<p>\u3082\u3061\u308d\u3093\u3001\u3053\u306e\u95a2\u6570\u306f\u3069\u306eMutableList<T>\u306b\u3082\u610f\u5473\u304c\u3042\u308a\u3001\u30b8\u30a7\u30cd\u30ea\u30af\u30b9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002:<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nfun &lt;T&gt; MutableList&lt;T&gt;.swap(index1: Int, index2: Int) {\r\n    val tmp = this&#x5B;index1] \/\/ 'this'\u306f\u305d\u306elist\u3092\u6307\u3057\u307e\u3059\u3002\r\n    this&#x5B;index1] = this&#x5B;index2]\r\n    this&#x5B;index2] = tmp\r\n}\r\n<\/pre>\n<p>\u30ec\u30b7\u30fc\u30d0\u578b\u306e\u5f0f\u3067\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u95a2\u6570\u540d\u306e\u524d\u306b\u30b8\u30a7\u30cd\u30ea\u30af\u30b9\u306e\u578b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002\u8a73\u7d30\u306f\u30b8\u30a7\u30cd\u30ea\u30af\u30b9\u95a2\u6570\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<span class=\"f_s\">\u203b\u3053\u306e\u5834\u5408\u3001\u30ec\u30b7\u30fc\u30d0\u578b\u540d\u306e\u524d\u3058\u3083\u306a\u3044\u304b\uff1f \u95a2\u6570\u540d\u306f\u3042\u304f\u307e\u3067\u3082swap\u3067\u306f\u306a\u304b\u308d\u3046\u304b\uff1f<\/span><\/p>\n<hr width=\"90%\">\n<p class=\"outline03\">\u62e1\u5f35\u6a5f\u80fd\u306f<b>\u9759\u7684\u306b<\/b>\u89e3\u6c7a\u3055\u308c\u307e\u3059<\/p>\n<p><span class=\"f_s\">\u203b\u306a\u3093\u304b\u96e3\u3057\u304b\u3063\u305f\u3093\u3067\u3001\u4ffa\u6c0f\u8d85\u8a33\u767a\u52d5(\uff40\u30fb\u03c9\u30fb\u00b4)\uff7c\uff6a\uff99\uff80\uff9e\uff9d<\/span><\/p>\n<p>\u62e1\u5f35\u6a5f\u80fd\u306f\u62e1\u5f35\u3059\u308b\u30af\u30e9\u30b9\u3092\u5b9f\u969b\u306b\u306f\u5909\u66f4\u3057\u307e\u305b\u3093\u3002\u62e1\u5f35\u6a5f\u80fd\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u30af\u30e9\u30b9\u306b\u65b0\u3057\u3044\u30e1\u30f3\u30d0\u95a2\u6570\u3092\u633f\u5165\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u5358\u306b\u5b9a\u7fa9\u3057\u305f\u95a2\u6570\u3092\u3053\u306e\u578b\u306e\u5909\u6570\u306b\u304a\u3044\u3066\u30c9\u30c3\u30c8\u8a18\u6cd5\u3067\u547c\u3073\u51fa\u3057\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\u62e1\u5f35\u6a5f\u80fd\u306f\u9759\u7684\u306b\u5272\u5f53\u3066\u3089\u308c\u307e\u3059\u3001\u3064\u307e\u308a\u3001\u30ec\u30b7\u30fc\u30d0\u578b\u306e\u4eee\u60f3\u306e\u5b58\u5728\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3092\u5f37\u304f\u8a8d\u8b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306f\u547c\u3073\u51fa\u3055\u308c\u308b\u62e1\u5f35\u95a2\u6570\u304c\u3001\u5b9f\u884c\u6642\u306b\u305d\u306e\u5f0f\u3092\u8a55\u4fa1\u3057\u305f\u7d50\u679c\u306e\u578b\u3067\u306f\u306a\u304f\u3001\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u5f0f\u306e\u578b\u306b\u3088\u3063\u3066\u6c7a\u5b9a\u3055\u308c\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nopen class Shape\r\n\u200b\r\nclass Rectangle: Shape()\r\n\u200b\r\nfun Shape.getName() = &quot;Shape&quot;\u3000\/\/\u203bShape\u3078\u62e1\u5f35\u95a2\u6570 getName()\u3092\u8ffd\u52a0\r\n\u200b\r\nfun Rectangle.getName() = &quot;Rectangle&quot; \/\/\u203bRectangle\u3078\u62e1\u5f35\u95a2\u6570 getName()\u3092\u8ffd\u52a0\r\n\u200b\r\nfun printClassName(s: Shape) {\r\n    println(s.getName())\r\n}    \r\n\u200b\r\nprintClassName(Rectangle()) \r\n<\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u4f8b\u3067\u306f\"Shape\"\u3068\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u306a\u305c\u306a\u3089\u547c\u3073\u51fa\u3055\u308c\u308b\u62e1\u5f35\u95a2\u6570\u306f\u5f15\u6570s\u306e\u5ba3\u8a00\u578b(Shape\u30af\u30e9\u30b9)\u306b\u306e\u307f\u4f9d\u5b58\u3059\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u306b\u30e1\u30f3\u30d0\u95a2\u6570\u304c\u3042\u308a\u3001\u540c\u3058\u30ec\u30b7\u30fc\u30d0\u578b\u3068\u95a2\u6570\u540d\u3092\u6301\u3061\u3001\u6307\u5b9a\u3055\u308c\u305f\u5f15\u6570\u306b\u9069\u7528\u3067\u304d\u308b\u62e1\u5f35\u95a2\u6570\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001<b>\u30e1\u30f3\u30d0\u304c\u5e38\u306b\u52dd\u3061\u307e\u3059<\/b>\u3002\u4f8b\u3048\u3070\uff1a<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nclass Example {\r\n    fun printFunctionType() { println(&quot;Class method&quot;) }\r\n}\r\n\u200b\r\nfun Example.printFunctionType() { println(&quot;Extension function&quot;) }\r\n\u200b\r\nExample().printFunctionType()\r\n<\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\"Class method\"\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<br \/>\n<span class=\"f_s\">\u203b\"\u62e1\u5f35\u95a2\u6570\u3068\u540c\u3058\u30b7\u30b0\u30cb\u30c1\u30e3(\u95a2\u6570\u540d\u3068\u5f15\u6570)\u3092\u6301\u3064\u30e1\u30f3\u30d0\u95a2\u6570\u304c\u30ec\u30b7\u30fc\u30d0\u578b\u306b\u3042\u308b\u5834\u5408\u3001\u5e38\u306b\u30e1\u30f3\u30d0\u95a2\u6570\u304c\u547c\u3070\u308c\u307e\u3059\u3002\"\u3068\u304b\"\u30ec\u30b7\u30fc\u30d0\u578b\u5185\u3067\u62e1\u5f35\u95a2\u6570\u3068\u65e2\u5b58\u306e\u30e1\u30f3\u30d0\u95a2\u6570\u306e\u30b7\u30b0\u30cb\u30c1\u30e3\u304c\u7af6\u5408\u3059\u308b\u5834\u5408\u3001\u5e38\u306b\u30e1\u30f3\u30d0\u95a2\u6570\u304c\u547c\u3070\u308c\u307e\u3059\"\u3068\u3044\u3046\u8868\u73fe\u3058\u3083\u99c4\u76ee\u306a\u3093\u3060\u308d\u3046\u304b\uff1f<br \/>\nJava\u306e\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u306b\u3057\u305f\u6642\u306b\u7b2c\u4e00\u5f15\u6570\u3068\u3057\u3066\u30ec\u30b7\u30fc\u30d0\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u308b\u3089\u3057\u304f\u3001\u6545\u306bkotlin\u4e0a\u3067\u306f\u540c\u3058\u30b7\u30b0\u30cb\u30c1\u30e3\u306b\u898b\u3048\u308b\u3051\u308c\u3069\u3082\u3001\u5b9f\u884c\u6642\u306eJava\u30b3\u30fc\u30c9\u3067\u306f\u9055\u3046\u30b7\u30b0\u30cb\u30c1\u30e3\u306b\u306a\u308b\u304b\u3089\u540c\u4e00\u30b7\u30b0\u30cb\u30c1\u30e3\u3068\u3044\u3046\u8868\u73fe\u3092\u907f\u3051\u305f\u306e\u304b\u306a\uff1f<br \/>\n<a href=\"https:\/\/taro.hatenablog.jp\/entry\/2012\/08\/28\/221203\" rel=\"noopener\" target=\"_blank\">#Kotlin \u306e\u62e1\u5f35\u95a2\u6570\u306e\u512a\u5148\u5ea6\u306b\u3064\u3044\u3066\u30e1\u30e2<\/a><\/span><\/p>\n<p>\u305f\u3060\u3057\u3001\u62e1\u5f35\u95a2\u6570\u304c\u540c\u3058\u540d\u524d\u3067\u30b7\u30b0\u30cb\u30c1\u30e3\u304c\u7570\u306a\u308b\u30e1\u30f3\u30d0\u95a2\u6570\u3092\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3057\u3066\u3082\u307e\u3063\u305f\u304f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002:<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nclass Example {\r\n    fun printFunctionType() { println(&quot;Class method&quot;) }\r\n}\r\n\r\nfun Example.printFunctionType(i: Int) { println(&quot;Extension function&quot;) }\r\n\r\nExample().printFunctionType(1)\r\n\u200b<\/pre>\n<p><span class=\"f_s\">\u203b\u305d\u3082\u305d\u3082\u30b7\u30b0\u30cb\u30c1\u30e3\u306f\u95a2\u6570\u540d\u3082\u542b\u3080\u306f\u305a\u3060\u304b\u3089\u3001\u3053\u306e\u6587\u7ae0\u304c\u4f55\u3092\u8a00\u3044\u305f\u3044\u306e\u304b\u3088\u304f\u308f\u304b\u3089\u306a\u3044(\u00b4\uff65\u03c9\uff65\uff40)\u3000\"\u540c\u3058\u95a2\u6570\u540d\u3067\u3082\u5f15\u6570\u306e\u6570\u3084\u578b\u304c\u7570\u306a\u308b\u3001\u5373\u3061\u30b7\u30b0\u30cb\u30c1\u30e3\u304c\u7570\u306a\u308b\u30e1\u30f3\u30d0\u95a2\u6570\"\u3068\u3044\u3046\u8868\u73fe\u306e\u65b9\u304c\u59a5\u5f53\u306a\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u3051\u3069\u3001\u305d\u308c\u3067\u3082\u3053\u3053\u3067\u308f\u3056\u308f\u3056\u8a00\u3063\u3066\u3044\u308b\u610f\u5473\u304c\u308f\u304b\u3089\u306a\u3044\u3002 \u30e1\u30f3\u30d0\u95a2\u6570\u3068\u540c\u3058\u30b7\u30b0\u30cb\u30c1\u30e3\u306e\u62e1\u5f35\u95a2\u6570\u3092\u4f5c\u6210\u3059\u308b\u3001\u5373\u3061\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u7684\u306a\u3053\u3068\u3092\u3059\u308b\u3068\u30e1\u30f3\u30d0\u95a2\u6570\u304c\u52dd\u3064\u3068\u3044\u3046\u3053\u3068\u306e\u5bfe\u6bd4\u3068\u3057\u3066\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u306b\u8a00\u53ca\u3057\u305f\u304b\u3063\u305f\u306e\u304b? <\/span>\u200b<\/p>\n<hr width=\"90%\">\n<p class=\"outline03\">Null\u8a31\u5bb9\u30ec\u30b7\u30fc\u30d0<\/p>\n<p>\u62e1\u5f35\u6a5f\u80fd\u306fnull\u8a31\u5bb9\u306e\u30ec\u30b7\u30fc\u30d0\u578b\u3067\u3082\u5b9a\u7fa9\u3067\u304d\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u5834\u5408\u306e\u62e1\u5f35\u95a2\u6570\u306f\u3001\u5024\u304cnull\u3067\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u3067\u3042\u3063\u3066\u3082\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u3001\u672c\u4f53\u5185\u3067\"this == null\"\u3092\u5224\u5b9a\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u4ed5\u7d44\u307f\u306b\u3088\u308a\u3001Kotlin\u3067\u306fnull\u5224\u5b9a\u3092\u305b\u305a\u306btoString()\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002:\u30c1\u30a7\u30c3\u30af\u306f\u62e1\u5f35\u95a2\u6570\u5185\u3067\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nfun Any?.toString(): String {\r\n    if (this == null) return &quot;null&quot;\r\n    \/\/ null\u5224\u5b9a\u5f8c\u3001'this'\u306f\u30b9\u30de\u30fc\u30c8\u30ad\u30e3\u30b9\u30c8\u306b\u3088\u308a\u975enull\u578b\u306b\u5909\u63db\u3055\u308c\u308b\u306e\u3067\u3001\r\n    \/\/ \u4ee5\u4e0b\u306etoString()\u306fAny\u30af\u30e9\u30b9\u306e\u30e1\u30f3\u30d0\u95a2\u6570\u306etoString()\u306b\u306a\u308a\u307e\u3059\u3002\r\n    return toString()\r\n}\r\n<\/pre>\n<hr width=\"90%\">\n<p class=\"outline03\">\u62e1\u5f35\u30d7\u30ed\u30d1\u30c6\u30a3<\/p>\n<p>\u62e1\u5f35\u95a2\u6570\u3068\u540c\u69d8\u306b\u3001Kotlin\u306f\u62e1\u5f35\u30d7\u30ed\u30d1\u30c6\u30a3\u3082\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nval &lt;T&gt; List&lt;T&gt;.lastIndex: Int\r\n    get() = size - 1\r\n<\/pre>\n<p>\u62e1\u5f35\u6a5f\u80fd\u306f\u5b9f\u969b\u306b\u306f\u30e1\u30f3\u30d0(\u5909\u6570)\u3092\u30af\u30e9\u30b9\u306b\u633f\u5165\u3057\u306a\u3044\u305f\u3081\u3001\u62e1\u5f35\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30d0\u30c3\u30ad\u30f3\u30b0\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6301\u305f\u305b\u308b\u6709\u52b9\u306a\u65b9\u6cd5\u304c\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u304c\u62e1\u5f35\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u521d\u671f\u5316\u5b50(\u30a4\u30cb\u30b7\u30e3\u30e9\u30a4\u30b6)\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u7406\u7531\u3067\u3059\u3002\u62e1\u5f35\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u52d5\u4f5c\u306f\u30b2\u30c3\u30bf\u30fc\/\u30bb\u30c3\u30bf\u30fc\u3092\u660e\u793a\u7684\u306b\u63d0\u4f9b\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u306e\u307f\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b:<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nval House.number = 1 \/\/ \u30a8\u30e9\u30fc\uff1a\u521d\u671f\u5316\u5b50\u306f\u62e1\u5f35\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u306f\u8a31\u53ef\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\r\n<\/pre>\n<p><span class=\"f_s\">\u203b\u306a\u3093\u3067\u3053\u3053\u306b\u30a8\u30e9\u30fc\u4f8b\u3060\u3051\u3057\u304b\u8f09\u305b\u3066\u306a\u3044\u3093\u3060\u308d\u3046\u304b\uff1f<\/span><\/p>\n<hr width=\"90%\">\n<p class=\"outline03\">\u30b3\u30f3\u30d1\u30cb\u30aa\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u62e1\u5f35<\/p>\n<p>\u30af\u30e9\u30b9\u306b\u30b3\u30f3\u30d1\u30cb\u30aa\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u306e\u30b3\u30f3\u30d1\u30cb\u30aa\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u62e1\u5f35\u95a2\u6570\u3068\u62e1\u5f35\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30d1\u30cb\u30aa\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u901a\u5e38\u306e\u30e1\u30f3\u30d0\u3068\u540c\u3058\u69d8\u306b\u3001\u4fee\u98fe\u5b50\u3068\u3057\u3066\u30af\u30e9\u30b9\u540d\u306e\u307f\u3092\u4f7f\u7528\u3057\u3066\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002: <span class=\"f_s\">\u203b\u30af\u30e9\u30b9\u540d\u3068\u304b\u3063\u3066\u4fee\u98fe\u5b50\u306b\u5206\u985e\u3055\u308c\u308b\u306e\uff1f<\/span><\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nclass MyClass {\r\n    companion object { }  \/\/ \u300c\u30b3\u30f3\u30d1\u30cb\u30aa\u30f3\u300d\u3068\u547c\u3070\u308c\u307e\u3059\u3002\r\n}\r\n\u200b\r\nfun MyClass.Companion.printCompanion() { println(&quot;companion&quot;) }\r\n\u200b\r\nfun main() {\r\n    MyClass.printCompanion()\r\n}\r\n<\/pre>\n<hr width=\"90%\">\n<p class=\"outline03\">\u62e1\u5f35\u6a5f\u80fd\u306e\u7bc4\u56f2<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001\u62e1\u5f35\u6a5f\u80fd\u306f\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\uff08\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u76f4\u4e0b\uff09\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002:<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\npackage org.example.declarations\r\n \r\nfun List&lt;String&gt;.getLongestString() { \/*...*\/}\r\n<\/pre>\n<p>\u5b9a\u7fa9\u3092\u884c\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5916\u90e8\u3067\u305d\u306e\u62e1\u5f35\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u547c\u3073\u51fa\u3057\u5074\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002:<br \/>\n<span class=\"f_s\">call site\u3063\u3066\u3042\u308b\u3051\u3069\u3001\u30d4\u30f3\u30dd\u30a4\u30f3\u30c8\u3067\u306f\u306a\u304f\u3001\u305d\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u3059\u308b\u3093\u3060\u304b\u3089\u547c\u3073\u51fa\u3057\u5074(side)\u3068\u304b\u306e\u65b9\u304c\u9069\u5207\u3067\u306f\u306a\u304b\u308d\u3046\u304b\uff1f<\/span><\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\npackage org.example.usage\r\n\u200b\r\nimport org.example.declarations.getLongestString\r\n\u200b\r\nfun main() {\r\n    val list = listOf(&quot;red&quot;, &quot;green&quot;, &quot;blue&quot;)\r\n    list.getLongestString()\r\n}\r\n<\/pre>\n<p>\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr width=\"90%\">\n<p class=\"outline03\">\u62e1\u5f35\u95a2\u6570\u3092\u30e1\u30f3\u30d0\u3068\u3057\u3066\u5ba3\u8a00\u3059\u308b<\/p>\n<p>\u30af\u30e9\u30b9\u5185\u90e8\u3067\u3001\u5225\u306e\u30af\u30e9\u30b9\u306e\u62e1\u5f35\u3092\u5ba3\u8a00\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u62e1\u5f35\u306e\u5185\u90e8\u306b\u306f\u8907\u6570\u306e\u6697\u9ed9\u7684\u306a\u30ec\u30b7\u30fc\u30d0\u304c\u3042\u308a\u307e\u3059\u3002(\u3053\u308c\u3089\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30e1\u30f3\u30d0\u306b\u306f\u3001\u4fee\u98fe\u5b50\u306a\u3057\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002\uff09\u3000\u62e1\u5f35\u304c\u5ba3\u8a00\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u30ec\u30b7\u30fc\u30d0\u3068\u547c\u3070\u308c\u3001\u62e1\u5f35\u95a2\u6570\u306e\u30ec\u30b7\u30fc\u30d0\u578b\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u62e1\u5f35\u30ec\u30b7\u30fc\u30d0\u3068\u547c\u3070\u308c\u307e\u3059\u3002<br \/>\n<span class=\"f_s\">\u203b\u3053\u3053\u306emultiple\u306e\u610f\u5473\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3002\u6697\u9ed9\u7684\u306a\u30ec\u30b7\u30fc\u30d0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5b58\u5728\u3059\u308b\u306e\u306f\u826f\u3044\u3068\u3057\u3066\u3082\u3002<\/span><\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nclass Host(val hostname: String) {\r\n    fun printHostname() { print(hostname) }\r\n}\r\n\u200b\r\nclass Connection(val host: Host, val port: Int) {\r\n     fun printPort() { print(port) }\r\n\u200b\r\n     fun Host.printConnectionString() {\r\n         printHostname()   \/\/ Host.printHostname()\u3092\u547c\u3076\u3002\r\n         print(&quot;:&quot;)\r\n         printPort()   \/\/ Connection.printPort()\u3092\u547c\u3076\u3002\r\n     }\r\n\u200b\r\n     fun connect() {\r\n         \/*...*\/\r\n         host.printConnectionString()   \/\/ \u62e1\u5f35\u95a2\u6570 printConnectionString()\u3092\u547c\u3076\u3002\r\n     }\r\n}\r\n\u200b\r\nfun main() {\r\n    Connection(Host(&quot;kotl.in&quot;), 443).connect()   \/\/&quot;kotl.in:443&quot;\u3068\u51fa\u529b\u3055\u308c\u308b\u3002\r\n    \/\/Host(&quot;kotl.in&quot;).printConnectionString(443)  \/\/Connection\u306e\u5916\u5074\u3067\u62e1\u5f35\u95a2\u6570 printConnectionString()\u306f\u5229\u7528\u51fa\u6765\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u547c\u51fa\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002\r\n \r\n}\r\n<\/pre>\n<p>\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u30ec\u30b7\u30fc\u30d0\u3068\u62e1\u5f35\u30ec\u30b7\u30fc\u30d0\u306e\u30e1\u30f3\u30d0\u9593\u3067\u540d\u524d\u304c\u7af6\u5408\u3059\u308b\u5834\u5408\u306f\u3001\u62e1\u5f35\u30ec\u30b7\u30fc\u30d0\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u3002\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u30ec\u30b7\u30fc\u30d0\u306e\u30e1\u30f3\u30d0\u30fc\u3092\u53c2\u7167\u3059\u308b\u306b\u306f\u3001this\u4fee\u98fe\u69cb\u6587\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nclass Connection {\r\n    fun Host.getConnectionString() {\r\n        toString()         \/\/ Host.toString()\u3092\u547c\u3076\r\n        this@Connection.toString()  \/\/ Connection.toString()\u3092\u547c\u3076\r\n    }\r\n}\r\n<\/pre>\n<p>\u30e1\u30f3\u30d0\u3068\u3057\u3066\u5ba3\u8a00\u3055\u308c\u308b\u62e1\u5f35\u95a2\u6570\u306f\u3001open\u3068\u3057\u3066\u5ba3\u8a00\u3067\u304d\u3001\u30b5\u30d6\u30af\u30e9\u30b9\u3067\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u3053\u306e\u3088\u3046\u306a\u95a2\u6570\u306e\u5272\u5f53\u306f\u3001\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u30ec\u30b7\u30fc\u30d0\u578b\u306b\u5bfe\u3057\u3066\u306f\u4eee\u60f3\u3067\u3059\u304c\u3001\u62e1\u5f35\u30ec\u30b7\u30fc\u30d0\u578b\u306b\u5bfe\u3057\u3066\u306f\u9759\u7684\u3067\u3059\u3002<\/p>\n<p><span class=\"f_s\">\u203b\u3053\u3053\u3082<b>open<\/b>\u3068\u3057\u3066\u5ba3\u8a00\u3067\u304d\u308b\u3068\u8868\u73fe\u3059\u308b\u3088\u308a\u3082\u7d20\u76f4\u306b\"\u30e1\u30f3\u30d0\u95a2\u6570\u3068\u540c\u69d8\u306bopen\u3092\u7528\u3044\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u30b5\u30d6\u30af\u30e9\u30b9\u3067\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\"\u3068\u304b\u306e\u65b9\u304c\u826f\u3044\u3088\u3046\u306a\u3002<\/span><\/p>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nopen class Base { }\r\n\u200b\r\nclass Derived : Base() { }\r\n\u200b\r\nopen class BaseCaller {\r\n    open fun Base.printFunctionInfo() {\r\n        println(&quot;Base extension function in BaseCaller&quot;)\r\n    }\r\n\u200b\r\n    open fun Derived.printFunctionInfo() {\r\n        println(&quot;Derived extension function in BaseCaller&quot;)\r\n    }\r\n\u200b\r\n    fun call(b: Base) {\r\n        b.printFunctionInfo()   \/\/ call the extension function\r\n    }\r\n}\r\n\u200b\r\nclass DerivedCaller: BaseCaller() {\r\n    override fun Base.printFunctionInfo() {\r\n        println(&quot;Base extension function in DerivedCaller&quot;)\r\n    }\r\n\u200b\r\n    override fun Derived.printFunctionInfo() {\r\n        println(&quot;Derived extension function in DerivedCaller&quot;)\r\n    }\r\n}\r\n\u200b\r\nfun main() {\r\n    BaseCaller().call(Base())   \/\/ &quot;Base extension function in BaseCaller&quot;\r\n    DerivedCaller().call(Base())  \/\/ &quot;Base extension function in DerivedCaller&quot; - dispatch receiver is resolved virtually\r\n    DerivedCaller().call(Derived())  \/\/ &quot;Base extension function in DerivedCaller&quot; - extension receiver is resolved statically\r\n}\r\n<\/pre>\n<hr width=\"90%\">\n<p class=\"outline03\">\u53ef\u8996\u6027\u306b\u95a2\u3059\u308b\u6ce8\u610f<\/p>\n<p>\u62e1\u5f35\u6a5f\u80fd\u306f\u3001\u540c\u3058\u30b9\u30b3\u30fc\u30d7\u3067\u5ba3\u8a00\u3055\u308c\u305f\u901a\u5e38\u306e\u95a2\u6570\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u4ed6\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u53ef\u8996\u6027\u3092\u5229\u7528\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/p>\n<p>\uff0d\u30d5\u30a1\u30a4\u30eb\u306e\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u3067\u5ba3\u8a00\u3055\u308c\u305f\u62e1\u5f35\u6a5f\u80fd\u306f\u3001\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u4ed6\u306eprivate\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u5ba3\u8a00\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002 :<\/p>\n<p>\uff0d\u62e1\u5f35\u6a5f\u80fd\u304c\u305d\u306e\u30ec\u30b7\u30fc\u30d0\u578b\u306e\u5916\u90e8\u3067\u5ba3\u8a00\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u306e\u3088\u3046\u306a\u62e1\u5f35\u6a5f\u80fd\u306f\u30ec\u30b7\u30fc\u30d0\u306eprivate\u30e1\u30f3\u30d0\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u203b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u5168\u3066\"Target platform: JVMRunning on kotlin v. 1.4.20\"\u306e\u3082\u306e\u3002\u5143\u30da\u30fc\u30b8\u3068\u540c\u3058\u3088\u3046\u306b\u8868\u8a18\u3055\u305b\u308b\u306e\u304c\u9762\u5012\u306a\u306e\u3067\u3053\u3053\u3067\u8868\u8a18\u3059\u308b\uff57 \u203b\u3044\u3064\u3082\u901a\u308a\u306e\u539f\u6587\u7121\u8996\u304c\u3061\u306e\u8d85\u8a33...  <a class=\"excerpt-read-more\" href=\"https:\/\/mole-kingdom.com\/wpbl\/2020\/12\/21\/22847.html\" title=\"Read \u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3(\u62e1\u5f35) : kotlin\">\u3082\u3063\u3068\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[124],"tags":[],"class_list":["post-22847","post","type-post","status-publish","format-standard","hentry","category-kotlin"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2pLuj-5Wv","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":22864,"url":"https:\/\/mole-kingdom.com\/wpbl\/2020\/12\/24\/22864.html","url_meta":{"origin":22847,"position":0},"title":"\u6f14\u7b97\u5b50\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9: kotlin","author":"moleking","date":"2020\u5e7412\u670824\u65e5","format":false,"excerpt":"\u6f14\u7b97\u5b50\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9 Kotlin\u3067\u306f\u4f5c\u6210\u3059\u308b\u578b\u306b\u5bfe\u3057\u3066\u3001\u4e8b\u524d\u5b9a\u7fa9\u6e08\u3067\u3042\u308b\u6f14\u7b97\u5b50\u30bb\u30c3\u30c8\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u2026","rel":"","context":"kotlin","block_context":{"text":"kotlin","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/programming\/kotlin"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24757,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/14\/24757.html","url_meta":{"origin":22847,"position":1},"title":"\u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(1)","author":"moleking","date":"2021\u5e746\u670814\u65e5","format":false,"excerpt":"kotlin\u306e\u5b66\u7fd2\u3064\u3044\u3067\u306bAndroid\u306b\u3064\u3044\u3066\u306e\u5fa9\u7fd2\u3092\u3057\u3088\u3046\u3068Welcome to Android\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mole-kingdom.com\/wpbl\/wp-content\/uploads\/2021\/06\/notcontainerror.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mole-kingdom.com\/wpbl\/wp-content\/uploads\/2021\/06\/notcontainerror.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mole-kingdom.com\/wpbl\/wp-content\/uploads\/2021\/06\/notcontainerror.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":22840,"url":"https:\/\/mole-kingdom.com\/wpbl\/2020\/12\/17\/22840.html","url_meta":{"origin":22847,"position":2},"title":"\u30b7\u30fc\u30eb\u30af\u30e9\u30b9(\u5bc6\u9589\u30af\u30e9\u30b9) : kotlin","author":"moleking","date":"2020\u5e7412\u670817\u65e5","format":false,"excerpt":"\u30b7\u30fc\u30eb\u30af\u30e9\u30b9(\u5bc6\u9589\u30af\u30e9\u30b9) \u30b7\u30fc\u30eb\u30af\u30e9\u30b9\u306f\u9650\u5b9a\u7684\u306a\u30af\u30e9\u30b9\u968e\u5c64\u3092\u8868\u3059\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 \u3053\u306e\u30af\u30e9\u30b9\u3067\u2026","rel":"","context":"kotlin","block_context":{"text":"kotlin","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/programming\/kotlin"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24853,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/20\/24853.html","url_meta":{"origin":22847,"position":3},"title":"\u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(3)","author":"moleking","date":"2021\u5e746\u670820\u65e5","format":false,"excerpt":"\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3 \u753b\u9762\u9593\u3092\u79fb\u52d5\u3059\u308b 2. \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u8a73\u7d30 \u30bb\u30c3\u30c8\u306e\u8a73\u7d30 All of the co\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24934,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/07\/12\/24934.html","url_meta":{"origin":22847,"position":4},"title":"\u300eAndroid Kotlin Fundamentals\u300f\u3092\u3084\u3063\u305f(3)","author":"moleking","date":"2021\u5e747\u670812\u65e5","format":false,"excerpt":"Android Kotlin Fundamentals 02.4:Data binding basi\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24858,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/23\/24858.html","url_meta":{"origin":22847,"position":5},"title":"\u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(\u7d42)","author":"moleking","date":"2021\u5e746\u670823\u65e5","format":false,"excerpt":"\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u9593\u306e\u5171\u6709 ViewModel 4. \u5171\u6709 ViewModel \u3092\u4f5c\u6210\u3059\u308b OrderVi\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/22847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/comments?post=22847"}],"version-history":[{"count":16,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/22847\/revisions"}],"predecessor-version":[{"id":22863,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/22847\/revisions\/22863"}],"wp:attachment":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/media?parent=22847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/categories?post=22847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/tags?post=22847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}