{"id":5883,"date":"2024-03-14T16:26:59","date_gmt":"2024-03-14T07:26:59","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/"},"modified":"2025-08-03T06:02:32","modified_gmt":"2025-08-02T21:02:32","slug":"%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/","title":{"rendered":"Java \u8907\u6570\u6761\u4ef6\u30bd\u30fc\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u3010Comparator\u5fb9\u5e95\u89e3\u8aac\u3011"},"content":{"rendered":"<p>Java\u3067\u306f\u3001Comparator\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u3066\u8907\u6570\u306e\u6761\u4ef6\u3067\u306e\u30bd\u30fc\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 Comparator\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u306fcompare\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8907\u6570\u306e\u6bd4\u8f03\u6761\u4ef6\u3092\u5b9f\u88c5\u3057\u3001\u305d\u306eComparator\u3092\u4f7f\u7528\u3057\u3066\u8907\u6570\u306e\u6761\u4ef6\u3067\u30bd\u30fc\u30c8\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u8907\u6570\u6761\u4ef6\u3067\u306e\u30bd\u30fc\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3059\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">import<\/span> java.util.Comparator;\r\n\r\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">MultiConditionSort<\/span> {\r\n\r\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title function_\">main<\/span><span class=\"hljs-params\">(String[] args)<\/span> {\r\n        <span class=\"hljs-comment\">\/\/ \u5b9a\u4e49\u4e00\u4e2aPerson\u7c7b<\/span>\r\n        <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">Person<\/span> {\r\n            String name;\r\n            <span class=\"hljs-type\">int<\/span> age;\r\n\r\n            <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-title function_\">Person<\/span><span class=\"hljs-params\">(String name, <span class=\"hljs-type\">int<\/span> age)<\/span> {\r\n                <span class=\"hljs-built_in\">this<\/span>.name = name;\r\n                <span class=\"hljs-built_in\">this<\/span>.age = age;\r\n            }\r\n\r\n            <span class=\"hljs-meta\">@Override<\/span>\r\n            <span class=\"hljs-keyword\">public<\/span> String <span class=\"hljs-title function_\">toString<\/span><span class=\"hljs-params\">()<\/span> {\r\n                <span class=\"hljs-keyword\">return<\/span> name + <span class=\"hljs-string\">\" - \"<\/span> + age;\r\n            }\r\n        }\r\n\r\n        <span class=\"hljs-comment\">\/\/ \u521b\u5efa\u4e00\u4e2aPerson\u5bf9\u8c61\u6570\u7ec4<\/span>\r\n        Person[] people = {\r\n                <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">Person<\/span>(<span class=\"hljs-string\">\"Alice\"<\/span>, <span class=\"hljs-number\">30<\/span>),\r\n                <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">Person<\/span>(<span class=\"hljs-string\">\"Bob\"<\/span>, <span class=\"hljs-number\">25<\/span>),\r\n                <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">Person<\/span>(<span class=\"hljs-string\">\"Charlie\"<\/span>, <span class=\"hljs-number\">35<\/span>),\r\n                <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">Person<\/span>(<span class=\"hljs-string\">\"David\"<\/span>, <span class=\"hljs-number\">20<\/span>)\r\n        };\r\n\r\n        <span class=\"hljs-comment\">\/\/ \u5b9a\u4e49\u4e00\u4e2aComparator\uff0c\u5b9e\u73b0\u591a\u6761\u4ef6\u6392\u5e8f<\/span>\r\n        Comparator&lt;Person&gt; comparator = Comparator\r\n                .comparing((Person p) -&gt; p.age) <span class=\"hljs-comment\">\/\/ \u6309\u5e74\u9f84\u5347\u5e8f\u6392\u5e8f<\/span>\r\n                .thenComparing(p -&gt; p.name);     <span class=\"hljs-comment\">\/\/ \u5e74\u9f84\u76f8\u540c\u65f6\uff0c\u6309\u59d3\u540d\u5347\u5e8f\u6392\u5e8f<\/span>\r\n\r\n        <span class=\"hljs-comment\">\/\/ \u4f7f\u7528Comparator\u8fdb\u884c\u6392\u5e8f<\/span>\r\n        Arrays.sort(people, comparator);\r\n\r\n        <span class=\"hljs-comment\">\/\/ \u6253\u5370\u6392\u5e8f\u7ed3\u679c<\/span>\r\n        <span class=\"hljs-keyword\">for<\/span> (Person person : people) {\r\n            System.out.println(person);\r\n        }\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u540d\u524d\u3068\u5e74\u9f62\u306e2\u3064\u306e\u5c5e\u6027\u3092\u542b\u3080Person\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001Person\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u914d\u5217\u3092\u4f5c\u6210\u3057\u3001\u8907\u6570\u6761\u4ef6\u3067\u30bd\u30fc\u30c8\u3059\u308bComparator\u3092\u5b9a\u7fa9\u3057\u307e\u3057\u305f\u3002\u5e74\u9f62\u306e\u6607\u9806\u3067\u5148\u306b\u30bd\u30fc\u30c8\u3057\u3001\u5e74\u9f62\u304c\u540c\u3058\u5834\u5408\u306f\u540d\u524d\u306e\u6607\u9806\u3067\u30bd\u30fc\u30c8\u3057\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001Arrays.sort\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066Person\u914d\u5217\u3092\u30bd\u30fc\u30c8\u3057\u3001\u30bd\u30fc\u30c8\u7d50\u679c\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u65b9\u6cd5\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u6570\u306e\u6761\u4ef6\u3067\u7c21\u5358\u306b\u30bd\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java\u3067\u306f\u3001Comparator\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u3066\u8907\u6570\u306e\u6761\u4ef6\u3067\u306e\u30bd\u30fc\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 Comparator\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u306fcompare\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8907\u6570\u306e\u6bd4\u8f03\u6761\u4ef6\u3092\u5b9f\u88c5\u3057\u3001\u305d\u306eC [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[890,42,367,26,889],"class_list":["post-5883","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-comparator","tag-java","tag-367","tag-26","tag-889"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java \u8907\u6570\u6761\u4ef6\u30bd\u30fc\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u3010Comparator\u5fb9\u5e95\u89e3\u8aac\u3011 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Java\u3067\u8907\u6570\u6761\u4ef6\u306e\u30bd\u30fc\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3002Comparator\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u3063\u305f\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u4f8b\u3068\u3001\u30bd\u30fc\u30c8\u6642\u306e\u6ce8\u610f\u70b9\u3082\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/\u8907\u6570\u6761\u4ef6\u3067\u306ejava\u306e\u30bd\u30fc\u30c8\u65b9\u6cd5\u306f\u3069\u3046\u5b9f\u88c5\u3057\u307e\u3059\u304b\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java \u8907\u6570\u6761\u4ef6\u30bd\u30fc\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u3010Comparator\u5fb9\u5e95\u89e3\u8aac\u3011\" \/>\n<meta property=\"og:description\" content=\"Java\u3067\u8907\u6570\u6761\u4ef6\u306e\u30bd\u30fc\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3002Comparator\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u3063\u305f\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u4f8b\u3068\u3001\u30bd\u30fc\u30c8\u6642\u306e\u6ce8\u610f\u70b9\u3082\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u8907\u6570\u6761\u4ef6\u3067\u306ejava\u306e\u30bd\u30fc\u30c8\u65b9\u6cd5\u306f\u3069\u3046\u5b9f\u88c5\u3057\u307e\u3059\u304b\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-14T07:26:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-02T21:02:32+00:00\" \/>\n<meta name=\"author\" content=\"\u6d77\u6597, \u8475\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6d77\u6597, \u8475\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/\",\"name\":\"Java \u8907\u6570\u6761\u4ef6\u30bd\u30fc\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u3010Comparator\u5fb9\u5e95\u89e3\u8aac\u3011 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-14T07:26:59+00:00\",\"dateModified\":\"2025-08-02T21:02:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\"},\"description\":\"Java\u3067\u8907\u6570\u6761\u4ef6\u306e\u30bd\u30fc\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3002Comparator\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u3063\u305f\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u4f8b\u3068\u3001\u30bd\u30fc\u30c8\u6642\u306e\u6ce8\u610f\u70b9\u3082\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java \u8907\u6570\u6761\u4ef6\u30bd\u30fc\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u3010Comparator\u5fb9\u5e95\u89e3\u8aac\u3011\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\",\"name\":\"\u6d77\u6597, \u8475\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"caption\":\"\u6d77\u6597, \u8475\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Java \u8907\u6570\u6761\u4ef6\u30bd\u30fc\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u3010Comparator\u5fb9\u5e95\u89e3\u8aac\u3011 - Blog - Silicon Cloud","description":"Java\u3067\u8907\u6570\u6761\u4ef6\u306e\u30bd\u30fc\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3002Comparator\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u3063\u305f\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u4f8b\u3068\u3001\u30bd\u30fc\u30c8\u6642\u306e\u6ce8\u610f\u70b9\u3082\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/\u8907\u6570\u6761\u4ef6\u3067\u306ejava\u306e\u30bd\u30fc\u30c8\u65b9\u6cd5\u306f\u3069\u3046\u5b9f\u88c5\u3057\u307e\u3059\u304b\/","og_locale":"ja_JP","og_type":"article","og_title":"Java \u8907\u6570\u6761\u4ef6\u30bd\u30fc\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u3010Comparator\u5fb9\u5e95\u89e3\u8aac\u3011","og_description":"Java\u3067\u8907\u6570\u6761\u4ef6\u306e\u30bd\u30fc\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3002Comparator\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u3063\u305f\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u4f8b\u3068\u3001\u30bd\u30fc\u30c8\u6642\u306e\u6ce8\u610f\u70b9\u3082\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u8907\u6570\u6761\u4ef6\u3067\u306ejava\u306e\u30bd\u30fc\u30c8\u65b9\u6cd5\u306f\u3069\u3046\u5b9f\u88c5\u3057\u307e\u3059\u304b\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-14T07:26:59+00:00","article_modified_time":"2025-08-02T21:02:32+00:00","author":"\u6d77\u6597, \u8475","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u6d77\u6597, \u8475","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/","name":"Java \u8907\u6570\u6761\u4ef6\u30bd\u30fc\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u3010Comparator\u5fb9\u5e95\u89e3\u8aac\u3011 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-14T07:26:59+00:00","dateModified":"2025-08-02T21:02:32+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6"},"description":"Java\u3067\u8907\u6570\u6761\u4ef6\u306e\u30bd\u30fc\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3002Comparator\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u3063\u305f\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u4f8b\u3068\u3001\u30bd\u30fc\u30c8\u6642\u306e\u6ce8\u610f\u70b9\u3082\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Java \u8907\u6570\u6761\u4ef6\u30bd\u30fc\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u3010Comparator\u5fb9\u5e95\u89e3\u8aac\u3011"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6","name":"\u6d77\u6597, \u8475","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","caption":"\u6d77\u6597, \u8475"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%a7%e3%81%aejava%e3%81%ae%e3%82%bd%e3%83%bc%e3%83%88%e6%96%b9%e6%b3%95%e3%81%af%e3%81%a9%e3%81%86%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%be%e3%81%99%e3%81%8b\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/5883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=5883"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/5883\/revisions"}],"predecessor-version":[{"id":326952,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/5883\/revisions\/326952"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=5883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=5883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=5883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}