{"title":" Map\u306e\u7f6e\u63db\u306b\u307f\u308b\u30b8\u30a7\u30cd\u30ea\u30af\u30b9\u8868\u73fe","author_url":"https://blog.hatena.ne.jp/Nagise/","description":"Java\u306e\u30b8\u30a7\u30cd\u30ea\u30af\u30b9\u306b\u3064\u3044\u3066\u8003\u5bdf\u3059\u308b\u306e\u306b\u4e01\u5ea6\u826f\u3044\u30c6\u30fc\u30de\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u5fd8\u308c\u306a\u3044\u3046\u3061\u306b\u66f8\u3044\u3066\u304a\u304f\u3002Map \u3092 Map\u306b\u5909\u63db\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u308b\u3068\u3044\u3046\u8a71\u984c\u3002 public static <K,V> Map<V,K> swap1(Map<K,V> origin) { // \u7565 } \u5358\u306bMap\u304b\u3089Map\u306b\u5909\u63db\u3059\u308b\u306a\u3089\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u30b7\u30b0\u30cd\u30c1\u30e3\u3067\u3088\u3044\u3002\u3053\u3053\u3067\u3001Map\u306e\u5177\u8c61\u578b\u3092\u5e30\u3059\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u3059\u308b\u3002 public static <K,V, R extends Map<V,K>, P extends Map<K,V>> R swap2(P origin, Supplier<R> supplier) { \u2026","blog_url":"https://nagise.hatenablog.jp/","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u8133\u307f\u305d","url":"https://nagise.hatenablog.jp/entry/20150212/1423752451","height":"190","provider_url":"https://hatena.blog","author_name":"Nagise","published":"2015-02-12 23:47:31","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnagise.hatenablog.jp%2Fentry%2F20150212%2F1423752451\" title=\" Map\u306e\u7f6e\u63db\u306b\u307f\u308b\u30b8\u30a7\u30cd\u30ea\u30af\u30b9\u8868\u73fe - \u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u8133\u307f\u305d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","categories":["Java","Generics"],"image_url":null,"width":"100%"}