{"id":4989,"date":"2019-07-21T17:29:55","date_gmt":"2019-07-21T08:29:55","guid":{"rendered":"https:\/\/pandanote.info\/?p=4989"},"modified":"2019-07-21T17:29:55","modified_gmt":"2019-07-21T08:29:55","slug":"java%e3%81%ae%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92scala%e3%81%ae%e3%83%aa%e3%82%b9%e3%83%88%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%97%e3%82%88%e3%81%86%e3%81%a8%e3%81%97%e3%81%9f%e3%81%a8%e3%81%93%e3%82%8d","status":"publish","type":"post","link":"https:\/\/pandanote.info\/?p=4989","title":{"rendered":"Java\u306e\u30ea\u30b9\u30c8\u3092Scala\u306e\u30ea\u30b9\u30c8\u306b\u5909\u63db\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u5272\u3068\u76db\u5927\u306b\u30cf\u30de\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>Scala\u306e\u3044\u3044\u3068\u3053\u308d\u306f(scala-native\u306e\u3053\u3068\u306f\u3068\u308a\u3042\u3048\u305a\u7f6e\u3044\u3068\u3044\u3066\u3001)\u7c21\u6f54\u306a\u8868\u8a18\u304c\u3067\u304d\u308b\u3053\u3068\u3068\u3001Java\u3067\u8a18\u8ff0\u3057\u305f\u904e\u53bb\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u8cc7\u7523\u3092\u5229\u7528\u3067\u304d\u308b\u3053\u3068\u3067\u3042\u308b\u3068\u672cWeb\u30b5\u30a4\u30c8\u306e\u7ba1\u7406\u4eba\u305f\u308bpanda\u306f\u7406\u89e3\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u3053\u308d\u304c\u3001Java\u3067\u958b\u767a\u3057\u305f\u30b3\u30fc\u30c9(*1)\u306b\u542b\u307e\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u8fd4\u3055\u308c\u305f\u30ea\u30b9\u30c8\u3092Scala\u306e\u30ea\u30b9\u30c8\u306b\u5909\u63db\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u5272\u3068\u76db\u5927\u306b\u30cf\u30de\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u89e3\u6c7a\u307e\u3067\u306e\u9053\u306e\u308a\u3092\u30e1\u30e2\u3059\u308b\u3053\u3068\u3068\u3044\u305f\u3057\u307e\u3059\u3002\ud83d\udc3c<\/p>\n<h2>\u554f\u984c\u3092\u518d\u73fe\u3055\u305b\u308b\u305f\u3081\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u6210\u53ca\u3073\u52d5\u4f5c\u306e\u78ba\u8a8d<\/h2>\n<p>(*1)\u306e\u30b3\u30fc\u30c9\u5168\u4f53\u306f\u304b\u306a\u308a\u5de8\u5927\u306a\u3082\u306e\u3067\u3042\u308b\u305f\u3081\u3001\u554f\u984c\u3092\u518d\u73fe\u3055\u305b\u308b\u305f\u3081\u306e\u5fc5\u8981\u6700\u4f4e\u9650\u306e\u30b3\u30fc\u30c9\u3092\u542b\u3080\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092Eclipse\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h3>Scala\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h3>\n<p>\u307e\u305a\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067Scala\u304c\u5229\u7528\u3067\u304d\u308bEclipse\u4e0a\u3067Scala\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>Scala\u306e\u958b\u767a\u74b0\u5883\u3092\u7d44\u307f\u8fbc\u3093\u3060Eclipse\u306e\u6e96\u5099\u304c\u5fc5\u8981\u3067\u3059\u3002\u6e96\u5099\u306e\u65b9\u6cd5\u306f<a href=\"https:\/\/pandanote.info\/?p=2939\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\u306a\u304a\u3001\u3053\u306e\u8a18\u4e8b\u3092\u6700\u521d\u306b\u66f8\u3044\u305f\u6642\u70b9(2019\u5e747\u6708)\u306eEclipse\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2019-06\u3067\u3057\u305f\u304c\u3001\u30ea\u30f3\u30af\u5148\u306e\u8a18\u8ff0\u3068\u540c\u69d8\u306e\u624b\u9806\u3067\u6e96\u5099\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>\u624b\u98061\u3067\u6e96\u5099\u3057\u305fEclipse\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>Workbench\u306ePackage Explorer\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u300cNew\u300d\u2192\u300cScala Project\u300d\u3068\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<li>\u300cNew Scala Project\u300d\u30a6\u30a3\u30b6\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001&#8221;Project name&#8221;\u306e\u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u9069\u5f53\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092\u5165\u529b\u3057\u3066&#8221;Next&#8221;\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<li>\u30a6\u30a3\u30b6\u30fc\u30c9\u306e\u8868\u793a\u304c\u4e0b\u56f3\u306e\u3088\u3046\u306b\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u306e\u3067\u3001\u300cCreate new source folder\u300d(\u4e0b\u56f3\u306e\u8d64\u77e2\u5370)\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001Java\u53ca\u3073Scala\u306e\u30b3\u30fc\u30c9\u3092\u7f6e\u304f\u305f\u3081\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u6163\u7fd2\u4e0a\u3001Java\u306e\u30b3\u30fc\u30c9\u3092\u7f6e\u304f\u30d5\u30a9\u30eb\u30c0\u3092&#8221;src\/main\/java&#8221;\u3001Scala\u306e\u30b3\u30fc\u30c9\u3092\u7f6e\u304f\u30d5\u30a9\u30eb\u30c0\u3092&#8221;src\/main\/scala&#8221;\u3068\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=4991\" rel=\"attachment wp-att-4991\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene1a-300x228.png\" alt=\"\" width=\"300\" height=\"228\" class=\"alignnone size-medium wp-image-4991\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene1a-300x228.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene1a-768x584.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene1a-660x502.png 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene1a.png 977w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>src\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u300cRemove from build path\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<h3>Java\u5074\u306e\u30b3\u30fc\u30c9<\/h3>\n<p>Java\u5074\u306e\u30b3\u30fc\u30c9\u306f\u524d\u7bc0\u3067\u4f5c\u6210\u3057\u305f&#8221;src\/main\/java&#8221;(\u4e0b\u56f3\u306e\u8d64\u77e2\u5370(a))\u306e\u4e0b\u306b\u9069\u5f53\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u540d(&#8220;info.pandanote.scalalisttest&#8221;\u3068\u3057\u3066\u3044\u307e\u3059\u3002)\u3092\u4f5c\u6210\u3057\u3066\u3001Integer\u578b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eList\u3092\u8fd4\u3059\u30e1\u30bd\u30c3\u30c9\u3092\u542b\u3080\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=4993\" rel=\"attachment wp-att-4993\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene2a-300x243.png\" alt=\"\" width=\"300\" height=\"243\" class=\"alignnone size-medium wp-image-4993\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene2a-300x243.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene2a.png 344w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h3>Scala\u5074\u306e\u30b3\u30fc\u30c9<\/h3>\n<h4>\u554f\u984c\u767a\u751f\u6642\u306e\u30b3\u30fc\u30c9<\/h4>\n<p>Scala\u5074\u306e\u30b3\u30fc\u30c9\u3082Java\u5074\u3068\u540c\u69d8\u306b\u524d\u3005\u7bc0\u3067\u4f5c\u6210\u3057\u305f&#8221;src\/main\/java&#8221;(\u4e0b\u56f3\u306e\u8d64\u77e2\u5370(a))\u306e\u4e0b\u306b\u9069\u5f53\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u540d(&#8220;info.pandanote.scalalisttest&#8221;\u3068\u3057\u3066\u3044\u307e\u3059\u3002)\u3092\u4f5c\u6210\u3057\u3066\u3001\u524d\u7bc0\u306eJava\u306e\u30b3\u30fc\u30c9\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u8fd4\u3055\u308c\u305fInteger\u578b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eList\u3092Scala\u306eList\u306b\u5909\u63db\u3057\u3066\u8868\u793a\u3059\u308b\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u305f\u3064\u3082\u308a\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u2026<\/p>\n<p>\u4e0b\u56f3\u306e\u8d64\u77e2\u5370\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\uff3f|\uffe3|\u25cb<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=4994\" rel=\"attachment wp-att-4994\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene2b-300x72.png\" alt=\"\" width=\"300\" height=\"72\" class=\"alignnone size-medium wp-image-4994\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene2b-300x72.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene2b-768x185.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene2b-660x159.png 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene2b.png 993w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h4>1st try: implicit def\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002<\/h4>\n<p>\u6700\u521d\u306f\u524d\u7bc0\u306e\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u306fJava\u306eInteger\u578b\u304b\u3089Scala\u306eInt\u578b\u3078\u306e\u5909\u63db\u304c\u3067\u304d\u3066\u3044\u306a\u3044\u306e\u304c\u539f\u56e0\u3060\u308d\u3046\u3068\u8003\u3048\u305f\u306e\u3067\u3001ListTest\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b9\u30b3\u30fc\u30d7\u4e2d\u306b<\/p>\n<div class=\"code\">implicit def javaIntegerToScalaInt(i: java.lang.Integer): Int = i.intValue<\/div>\n<p>&nbsp;<br \/>\n\u3068\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d50\u679c\u306f\u2026<\/p>\n<p>\u4f55\u3082\u5909\u308f\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002(\u00b4\u30fb\u03c9\u30fb\uff40)<\/p>\n<h4>2nd try: Java\u5074\u306eList\u3092\u7591\u3046\u3002<\/h4>\n<p>\u6b21\u306b\u3001Java\u306eInteger\u2192Scala\u306eInt\u306e\u4ed6\u306b\u3082List\u578b\u306e\u578b\u5909\u63db\u304c\u3067\u304d\u3066\u3044\u306a\u3044\u3053\u3068\u3082\u30a8\u30e9\u30fc\u767a\u751f\u306e\u539f\u56e0\u306a\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u8003\u3048\u305f\u306e\u3067\u3001Java\u306eInteger\u306eList\u304b\u3089Scala\u306eInt\u306eList\u3078\u306e\u578b\u5909\u63db\u3092\u884c\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u4e0b\u56f3\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u2026<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=4995\" rel=\"attachment wp-att-4995\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene4a-300x147.png\" alt=\"\" width=\"300\" height=\"147\" class=\"alignnone size-medium wp-image-4995\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene4a-300x147.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene4a-768x377.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene4a-660x324.png 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene4a.png 921w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u4e0a\u56f3\u306e\u8d64\u77e2\u5370\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u306a\u3093\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u304b\u306e\u898b\u5f53\u304c\u3059\u3050\u306b\u306f\u3064\u304b\u306a\u304b\u3063\u305f\u305f\u3081\u306b\u304b\u306a\u308a\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u8a66\u884c\u932f\u8aa4\u3059\u308b\u3053\u3068\u3001\u7d042\u6642\u9593\u3002<\/p>\n<p><a href=\"https:\/\/pandanote.info\/?attachment_id=4996\" rel=\"attachment wp-att-4996\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/P_20190719_214837_vHDR_On_HP_a-300x272.jpg\" alt=\"\" width=\"300\" height=\"272\" class=\"alignnone size-medium wp-image-4996\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/P_20190719_214837_vHDR_On_HP_a-300x272.jpg 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/P_20190719_214837_vHDR_On_HP_a-768x696.jpg 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/P_20190719_214837_vHDR_On_HP_a-1024x928.jpg 1024w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/P_20190719_214837_vHDR_On_HP_a-660x598.jpg 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/P_20190719_214837_vHDR_On_HP_a.jpg 1324w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n(\u203b\u4e0a\u306e\u753b\u50cf\u306f\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002)<\/p>\n<p>\u300c\u3082\u3057\u304b\u3057\u3066\u3001Scala\u306eList\u3068Java\u306eList\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u304c\u9055\u3046\u3093\u3058\u3083\u306d?\u300d<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u306b\u6c17\u304c\u4ed8\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\ud83d\udca1<\/p>\n<p>\u305d\u3053\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=4997\" rel=\"attachment wp-att-4997\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene6a-300x181.png\" alt=\"\" width=\"300\" height=\"181\" class=\"alignnone size-medium wp-image-4997\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene6a-300x181.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene6a-768x462.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene6a-660x397.png 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene6a.png 1022w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u4e0a\u56f3\u306e\u8d64\u77e2\u5370(a)\u306e\u90e8\u5206\u304c\u5909\u66f4\u3057\u305f\u3068\u3053\u308d\u306b\u306a\u308a\u307e\u3059\u3002Java\u306eList\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u4fee\u6b63\u3092\u884c\u3063\u305f\u3068\u3053\u308d\u30a8\u30e9\u30fc\u304c\u6d88\u3048\u305f\u306e\u3067\u3001Eclipse\u4e0a\u3067\u5b9f\u884c\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u4e0a\u56f3\u306e\u8d64\u77e2\u5370(b)\u306e\u3088\u3046\u306bList\u306e\u4e2d\u8eab\u304cScala\u5074\u306b\u6e21\u308a\u3001\u305d\u306e\u4e2d\u8eab\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\ud83c\udf89<\/p>\n<h2>\u3082\u3046\u3061\u3087\u3063\u3068\u7c21\u6f54\u306b\u66f8\u3044\u3066\u307f\u308b\u3002<\/h2>\n<p>\u4e0a\u56f3\u306e\u30b3\u30fc\u30c9\u306e\u66f8\u304d\u65b9\u3060\u3068Better Java\u7684\u306a\u66f8\u304d\u65b9\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u3082\u3046\u5c11\u3057\u7c21\u6f54\u306b\u66f8\u3051\u306a\u3044\u304b\u8003\u3048\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u306e\u53c2\u8003\u6587\u732e\u306e\u30b5\u30a4\u30c8\u69d8\u306e\u5185\u5bb9\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u306a\u304c\u3089\u3001\u3055\u3089\u306b\u8a66\u884c\u932f\u8aa4\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u307f\u305f\u3068\u3053\u308d\u3001List\u306e\u4e2d\u8eab\u304cScala\u5074\u306b\u6e21\u308a\u3001\u305d\u306e\u4e2d\u8eab\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\ud83c\udf8a<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=4998\" rel=\"attachment wp-att-4998\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene7a-300x151.png\" alt=\"\" width=\"300\" height=\"151\" class=\"alignnone size-medium wp-image-4998\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene7a-300x151.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene7a-768x386.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene7a-1024x515.png 1024w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene7a-660x332.png 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2019\/07\/confirmation_of_implicit_def_on_scala_scene7a.png 1337w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nBetter Java\u7684\u306a\u66f8\u304d\u65b9\u3067\u3082Java\u3067\u66f8\u304f\u3088\u308a\u306f\u7c21\u6f54\u306a\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u3088\u308a\u3082\u3055\u3089\u306b\u7c21\u6f54\u306a\u4e00\u884c\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3057\u305f\u3002\ud83d\ude0e<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u5f8cScala\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u306b\u3042\u305f\u308aEclipse\u3068Emacs\u306e\u3069\u3061\u3089\u3092\u30e1\u30a4\u30f3\u306b\u3059\u3079\u304d\u304b\u306b\u3064\u3044\u3066\u306f\u3053\u306e\u8a18\u4e8b\u3092\u6700\u521d\u306b\u66f8\u3044\u305f\u6642\u70b9(2019\u5e747\u6708)\u3067\u306f\u307e\u3060\u7d50\u8ad6\u3092\u51fa\u305b\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306fEclipse\u3067Scala\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u5b9f\u88c5\u3068\u52d5\u4f5c\u306e\u78ba\u8a8d\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u306a\u304a\u3001Eclipse\u4ee5\u5916\u306e\u74b0\u5883(sbt\u7b49)\u3067\u306e\u30d3\u30eb\u30c9\u306e\u78ba\u8a8d\u306f\u3053\u306e\u8a18\u4e8b\u3092\u6700\u521d\u306b\u66f8\u3044\u305f\u6642\u70b9(2019\u5e747\u6708)\u3067\u306f\u884c\u3063\u3066\u304a\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u305d\u306e\u70b9\u306b\u3064\u304d\u307e\u3057\u3066\u306f\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u521d\u306fJava\u5074\u306eInteger\u30af\u30e9\u30b9\u3068Scala\u5074\u306eInt\u30af\u30e9\u30b9\u306e\u5909\u63db\u306e\u554f\u984c\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u601d\u308f\u306c\u7f60\u304c\u5f85\u3061\u69cb\u3048\u3066\u3044\u307e\u3057\u305f\u3002Scala\u3068Java\u306f\u89aa\u548c\u6027\u304c\u9ad8\u3044\u5206\u3060\u3051\u3001\u300c\u540c\u4e00\u30af\u30e9\u30b9\u540d\u3067Scala\u3068Java\u3067\u7570\u306a\u308b\u6a5f\u80fd\u3092\u6301\u3064\u30af\u30e9\u30b9\u300d\u306e\u5b58\u5728\u306b\u306f\u8981\u6ce8\u610f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<\/p>\n<p>Scala\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u305f\u3081\u306e\u6642\u9593\u3084Emacs\u3092\u4f7f\u3063\u305f\u958b\u767a\u74b0\u5883\u306e\u6574\u5099\u306e\u305f\u3081\u306e\u6642\u9593\u304c\u3042\u307e\u308a\u5272\u3051\u3066\u3044\u306a\u3044\u72b6\u6cc1\u4e0b\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3067\u66f8\u3044\u305f\u554f\u984c\u3068\u985e\u4f3c\u306e\u554f\u984c\u306f\u4eca\u5f8c\u3082\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u554f\u984c\u306e\u767a\u751f\u6642\u306b\u306f\u89e3\u6c7a\u7b56\u306a\u3069\u307e\u3067\u542b\u3081\u305f\u8a18\u4e8b\u3092\u5225\u9014\u66f8\u304f\u3064\u3082\u308a\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n<h2>References \/ \u53c2\u8003\u6587\u732e<\/h2>\n<ul>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/1566315\/int-vs-integer-type-mismatch-found-int-required-string\">Int vs Integer: type mismatch, found: Int, required: String<\/a><\/li>\n<li><a href=\"https:\/\/qiita.com\/nmaru53\/items\/39158b599c3a0ae59103\">[Java]\u30ea\u30b9\u30c8\u5185\u306e\u30b7\u30e3\u30c3\u30d5\u30eb<\/a><\/li>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/16162090\/how-to-convert-a-java-util-list-to-a-scala-list\">How to convert a java.util.List to a Scala list<\/a><\/li>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/6991340\/scala-convert-listint-to-a-java-util-listjava-lang-integer\">Scala convert List[Int] to a java.util.List[java.lang.Integer]<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Scala\u306e\u3044\u3044\u3068\u3053\u308d\u306f(scala-native\u306e\u3053\u3068\u306f\u3068\u308a\u3042\u3048\u305a\u7f6e\u3044\u3068\u3044\u3066\u3001)\u7c21\u6f54\u306a\u8868\u8a18\u304c\u3067\u304d\u308b\u3053\u3068\u3068\u3001Java\u3067\u8a18\u8ff0\u3057\u305f\u904e\u53bb\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u8cc7\u7523\u3092\u5229\u7528\u3067\u304d\u308b\u3053\u3068\u3067\u3042\u308b\u3068\u672cWeb\u30b5\u30a4\u30c8\u306e\u7ba1\u7406\u4eba\u305f\u308bpanda\u306f\u7406\u89e3\u3057\u3066\u3044\u307e\u3059\u3002 \u3068\u3053\u308d\u304c\u3001Java\u3067\u958b\u767a\u3057\u305f\u30b3\u30fc\u30c9(*1)\u306b\u542b\u307e\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u8fd4\u3055\u308c\u305f\u30ea\u30b9\u30c8\u3092Scala\u306e\u30ea\u30b9\u30c8\u306b\u5909\u63db\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u5272\u3068\u76db\u5927\u306b\u30cf\u30de\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u2026 <span class=\"read-more\"><a href=\"https:\/\/pandanote.info\/?p=4989\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":5000,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,8,18,15,17],"tags":[],"class_list":["post-4989","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-eclipse","category-fedora","category-nuc","category-pc","category-scala"],"_links":{"self":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/4989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4989"}],"version-history":[{"count":4,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/4989\/revisions"}],"predecessor-version":[{"id":5001,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/4989\/revisions\/5001"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/media\/5000"}],"wp:attachment":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}