{"id":132,"date":"2018-03-25T14:57:27","date_gmt":"2018-03-25T05:57:27","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=132"},"modified":"2023-05-28T08:52:08","modified_gmt":"2023-05-27T23:52:08","slug":"%e3%80%90java%e3%83%aa%e3%83%95%e3%82%a1%e3%82%af%e3%82%bf%e3%83%aa%e3%83%b3%e3%82%b0%e3%80%91%e7%b6%ba%e9%ba%97%e3%81%aa%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e3%81%ae%e6%9b%b8%e3%81%8d%e6%96%b9","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=132","title":{"rendered":"\u3010Java\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3011\u7dba\u9e97\u306a\u30b3\u30e1\u30f3\u30c8\u306e\u66f8\u304d\u65b9"},"content":{"rendered":"<p>Java\u306e\u30b3\u30e1\u30f3\u30c8\u306f\u30011\u884c\u306e\u5834\u5408\u300c\/\/\u300d\u3001\u8907\u6570\u884c\u306e\u5834\u5408\u300c\/*\u300d\u3068\u300c*\/\u300d\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u4eba\u306b\u3088\u3063\u3066\u7d50\u69cb\u30b3\u30e1\u30f3\u30c8\u306e\u8a18\u8ff0\u6cd5\u304c\u30d0\u30e9\u30d0\u30e9\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3088\u306d\u3002<\/p>\n<h2>\u4e00\u884c\u30b3\u30e1\u30f3\u30c8(\/\/)\u306b\u3064\u3044\u3066<\/h2>\n<p>\u77e5\u3063\u3066\u3044\u308b\u65b9\u3082\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001Eclipse\u3067\u8a00\u3048\u3070\u3001\u300cCtrl + \/\u300d\u304c\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u00a0\u5229\u7528\u5834\u9762<\/h3>\n<p>\u30fb\u57fa\u672c\u7684\u306b\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u5185\u306e\u51e6\u7406\u306e\u307e\u3068\u307e\u308a\u3084\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u524d\u7b49\u306b\u8a18\u8ff0\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u8907\u6570\u884c\u30b3\u30e1\u30f3\u30c8(\/* \uff5e *\/)\u306b\u3064\u3044\u3066<\/h2>\n<h3>\u5229\u7528\u5834\u9762<\/h3>\n<p>\u30fb\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u7b49\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8aac\u660e\u3092\u66f8\u304f\u3068\u304d\u306b\u4f7f\u3046\u3002<\/p>\n<h2>JavaDoc\u30b3\u30e1\u30f3\u30c8(\/** \uff5e *\/)\u306b\u3064\u3044\u3066<\/h2>\n<p>JavaDoc\u3068\u306f\u3001<strong>\u300cJava\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u30b3\u30e1\u30f3\u30c8\u300d<\/strong>\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n\t\/**\r\n\t * int\u578b\u306e\u6570\u5024\u30921\u52a0\u7b97\u3057\u3066\u8fd4\u3057\u307e\u3059\u3002\r\n\t * @param \u52a0\u7b97\u5bfe\u8c61\u306e\u6570\u5024(int\u578b)\r\n\t * @return \u52a0\u7b97\u5f8c\u306e\u6570\u5024(int\u578b\uff09\r\n\t * @author t.taro\r\n\t * @version 1.0\r\n\t *\/\r\n\tpublic int methodA(int num) {\r\n\t    num++;\r\n\t    return num;\r\n\t}\r\n<\/pre>\n<p>\u666e\u901a\u306e\u8907\u6570\u884c\u30b3\u30e1\u30f3\u30c8\u3068\u9055\u3063\u3066\u3001\u5148\u982d\u306e\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\u304c\u4e8c\u3064\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Eclipse\u3067\u306f\u3001Alt+Shift+J\u3067\u304c\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u30bf\u30b0\u3092\u4f7f\u3063\u3066\u30b3\u30e1\u30f3\u30c8\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u4f7f\u7528\u3067\u304d\u308b\u30bf\u30b0<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>@param<\/td>\n<td>\u30d1\u30e9\u30e1\u30fc\u30bf(\u5f15\u6570\uff09<\/td>\n<\/tr>\n<tr>\n<td>@return<\/td>\n<td>\u623b\u308a\u5024<\/td>\n<\/tr>\n<tr>\n<td>@author<\/td>\n<td>\u30d7\u30ed\u30b0\u30e9\u30e0\u4f5c\u6210\u8005<\/td>\n<\/tr>\n<tr>\n<td>@throw<\/td>\n<td>\u6295\u3052\u3089\u308c\u308b\u4f8b\u5916<\/td>\n<\/tr>\n<tr>\n<td>@version<\/td>\n<td>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>JavaDoc\u751f\u6210\u5f8c\u306eHTML\u306e\u51fa\u529b\u7d50\u679c\u3068\u3057\u3066\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002(Eclipse\u3067\u3001\u300c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u2192\u300cJavaDoc\u751f\u6210\u300d\u3092\u9078\u3076\u3068\u81ea\u52d5\u751f\u6210\u3067\u304d\u307e\u3059\u3002\uff09<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-178\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/03\/JavaDoc.png\" alt=\"\" width=\"354\" height=\"230\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/03\/JavaDoc.png 354w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/03\/JavaDoc-300x195.png 300w\" sizes=\"(max-width: 354px) 100vw, 354px\" \/><\/p>\n<p>\u306a\u304a\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u4ed8\u3051\u65b9\u306b\u95a2\u3057\u3066\u306f\u4e0b\u8a18\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3055\u308c\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"Gy9srZQ6Ur\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=146\">\u3010\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3011\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u4ed8\u3051\u65b9<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=146&#038;embed=true#?secret=Gy9srZQ6Ur\" data-secret=\"Gy9srZQ6Ur\" width=\"500\" height=\"282\" title=\"&#8220;\u3010\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3011\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u4ed8\u3051\u65b9&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>TODO\u30b3\u30e1\u30f3\u30c8(\/\/TODO)\u306b\u3064\u3044\u3066<\/h2>\n<h3>\u5229\u7528\u5834\u9762<\/h3>\n<p>\u30fb\u4f5c\u308a\u304b\u3051\u3084\u3001\u672a\u5b9f\u88c5\u306e\u51e6\u7406\u306b\u4f7f\u7528\u3059\u308b\u30b3\u30e1\u30f3\u30c8\uff08Eclipse\u3067\u306f\u3001TODO\u3092\u4e00\u89a7\u5316\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\uff09<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n\tpublic void methodB() {\r\n\t\t\/\/TODO \u672a\u5b9f\u88c5\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\r\n\t}\r\n<\/pre>\n<h2>\u30b3\u30e1\u30f3\u30c8\u306e\u30e1\u30ea\u30c3\u30c8\u3001\u30c7\u30e1\u30ea\u30c3\u30c8<\/h2>\n<p>\u30b3\u30e1\u30f3\u30c8\u306f\u3001\u30e1\u30ea\u30c3\u30c8\u3070\u304b\u308a\u306b\u601d\u3048\u307e\u3059\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u4e00\u6982\u306b\u305d\u3046\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<p>\u8aa4\u3063\u305f\u30b3\u30e1\u30f3\u30c8\u304c\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u304b\u3048\u3063\u3066\u958b\u767a\u8005\u3092\u6df7\u4e71\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4fee\u6b63\u5f8c\u306b\u3001\u30b3\u30e1\u30f3\u30c8\u3082\u4fee\u6b63\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u304c\u3001\u3055\u308c\u3066\u3044\u306a\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u4e0d\u8981\u306a\u30b3\u30e1\u30f3\u30c8\u306f\u3001\u3067\u304d\u308b\u3060\u3051\u907f\u3051\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/strong><\/span><\/p>\n<h3>\u5fc5\u8981\u306a\u30b3\u30e1\u30f3\u30c8\u306e\u4f8b<\/h3>\n<p>\u305d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5b58\u5728\u610f\u7fa9\u304c\u66f8\u304b\u308c\u305f\u30b3\u30e1\u30f3\u30c8<\/p>\n<h3>\u4e0d\u8981\u306a\u30b3\u30e1\u30f3\u30c8\u306e\u4f8b<\/h3>\n<p>\u4e00\u884c\u4e00\u884c\u5b9f\u6cc1\u4e2d\u7d99\u3057\u3066\u3044\u308b\u30b3\u30e1\u30f3\u30c8\uff08\u30bd\u30fc\u30b9\u3092\u8aad\u3081\u3070\u5206\u304b\u308b\u305f\u3081\uff09<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u8272\u3005\u306a\u30b3\u30e1\u30f3\u30c8\u306e\u66f8\u304d\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u304c\u3001\u3067\u304d\u308c\u3070\u53ef\u8aad\u6027\u3092\u8003\u616e\u3059\u308b\u3068\u3001\u30e1\u30bd\u30c3\u30c9\u540d\u3084\u56fa\u5b9a\u5024\u3001\u5909\u6570\u540d\u306e\u5de5\u592b\u3001\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u6d3b\u7528\u7b49\u3092\u3057\u3066\u300c\u305d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u4f55\u3092\u3084\u3063\u3066\u3044\u308b\u304b\u300d\u308f\u304b\u308b\u3088\u3046\u306b\u306a\u308b\u3053\u3068\u304c\u7406\u60f3\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u3044\u3048\u308b\u306e\u3067\u3001\u6700\u7d42\u7684\u306b\u306f\u30b3\u30e1\u30f3\u30c8\u306fJavaDoc\u30b3\u30e1\u30f3\u30c8\u306e\u307f\u3068\u3044\u3046\u5f62\u3092\u76ee\u6307\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Java\u306e\u30b3\u30e1\u30f3\u30c8\u306f\u30011\u884c\u306e\u5834\u5408\u300c\/\/\u300d\u3001\u8907\u6570\u884c\u306e\u5834\u5408\u300c\/*\u300d\u3068\u300c*\/\u300d\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u4eba\u306b\u3088\u3063\u3066\u7d50\u69cb\u30b3\u30e1\u30f3\u30c8\u306e\u8a18\u8ff0\u6cd5\u304c\u30d0\u30e9\u30d0\u30e9\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3088\u306d\u3002 \u4e00\u884c\u30b3\u30e1\u30f3\u30c8(\/\/)\u306b\u3064\u3044\u3066 \u77e5\u3063\u3066\u3044\u308b\u65b9\u3082\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001Eclip [&hellip;]","protected":false},"author":1,"featured_media":145,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/132"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=132"}],"version-history":[{"count":22,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":20809,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions\/20809"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/145"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}