{"height":"190","version":"1.0","provider_name":"Hatena Blog","published":"2023-10-31 10:00:18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpokoyakazan.hatenablog.com%2Fentry%2F2023%2F10%2F31%2F100018\" title=\"Java\u306e`Comparable`\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u305d\u306e\u4f7f\u7528\u4f8b - \u307d\u3053\u3084\u304b\u3056\u3093\u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Java\u306e`Comparable`\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u305d\u306e\u4f7f\u7528\u4f8b","description":"\u3068\u3042\u308b\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u8981\u7d20\u3068\u306a\u308b\u914d\u5217\u3092\u7279\u5b9a\u306e\u30af\u30e9\u30b9\u5909\u6570\u306a\u3069\u3067\u30bd\u30fc\u30c8\u3057\u305f\u3044\u6642\u306e\u30e1\u30e2\u3002 \u305d\u306e\u5834\u5408\u306f\u30af\u30e9\u30b9\u3092 Comparable \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304b\u3089\u5b9f\u88c5\u3059\u308b\u3002 \u3053\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3001compareTo \u30e1\u30bd\u30c3\u30c9\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3059\u308b\u3053\u3068\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540c\u58eb\u306e\u6bd4\u8f03\u304c\u53ef\u80fd\u3002 \u4f8b\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aNumberEntity\u3068\u3044\u3046\u30af\u30e9\u30b9\u3092\u8003\u3048\u308b\u3002 private static class NumberEntity implements Comparable<NumberEntity> { int value; public NumberEntity(int value) { this.value =\u2026","blog_url":"https://pokoyakazan.hatenablog.com/","url":"https://pokoyakazan.hatenablog.com/entry/2023/10/31/100018","provider_url":"https://hatena.blog","type":"rich","image_url":null,"author_url":"https://blog.hatena.ne.jp/pokoyakazan/","width":"100%","categories":[],"author_name":"pokoyakazan","blog_title":"\u307d\u3053\u3084\u304b\u3056\u3093\u96d1\u8a18"}