{"blog_title":"Oboe\u5439\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9ed9\u793a\u9332","blog_url":"https://oboe2uran.hatenablog.com/","version":"1.0","type":"rich","height":"190","published":"2021-07-09 12:50:21","image_url":null,"title":"\u7dcf\u79f0\u578b\u306e\u30af\u30e9\u30b9\u3092\u8a8d\u8b58\u3059\u308b","author_name":"posturan","width":"100%","author_url":"https://blog.hatena.ne.jp/posturan/","description":"\u7dcf\u79f0\u578b\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4e0e\u3048\u308b\u5834\u5408\u3001\u5f53\u305f\u308a\u524d\u3060\u304c\u7dcf\u79f0\u578b\u306e\u30af\u30e9\u30b9\u306f\u8a8d\u8b58\u3067\u304d\u308b\u3002 public class Some<T> { private Class<T> genericClass; public Some(T t) { genericClass = t.getClass(); } \u3053\u306e\u3088\u3046\u306b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067 T \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u6e21\u3059\u306e\u3067\u306f\u306a\u304f\u3001\u6e21\u3055\u305a\u306b genericClass \u3092\u6c42\u3081\u305f\u3044\u3002 \u3064\u307e\u308a\u3001 Some<Foo> some = new Some<>(); \u3067\u3082\u3001\u7dcf\u79f0\u578b\u306e\u30af\u30e9\u30b9\u3092\u3001Some \u5185\u90e8\u3060\u3051\u306e\u5b9f\u884c\u7bc4\u56f2\u3067\u8a8d\u8b58\u3057\u305f\u3044\u3002\uff08\u3081\u3061\u3083\u304f\u3061\u3083\u306a\u8981\u6c42\u3060\u3068\u306f\u601d\u3046\uff09\u53ef\u5909\u9577\u5f15\u6570\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306b\u3059\u308b\u3053\u2026","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2021%2F07%2F09%2F125021\" title=\"\u7dcf\u79f0\u578b\u306e\u30af\u30e9\u30b9\u3092\u8a8d\u8b58\u3059\u308b - Oboe\u5439\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9ed9\u793a\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Java"],"provider_name":"Hatena Blog","url":"https://oboe2uran.hatenablog.com/entry/2021/07/09/125021"}