{"provider_name":"Hatena Blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/scache/20180321/20180321002505.png","published":"2018-03-21 00:49:26","categories":["Kotlin"],"description":"data class\u3068\u306f data class\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30af\u30e9\u30b9\u306bdata\u3092\u3064\u3051\u3066\u5ba3\u8a00\u3059\u308b\u3053\u3068\u3067\u3001 \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u5ba3\u8a00\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3063\u305fequals/hashCode/toString\u95a2\u6570\u306a\u3069\u3092\u81ea\u52d5\u751f\u6210\u3057\u3066\u304f\u308c\u307e\u3059\u3002 data class Book( val title: String, val page: Int ) val book1 = Book(\"book\", 100) val book2 = Book(\"book\", 100) book1.toString() // => Book(title=book, page=100) book1 == book2 // => tru\u2026","url":"https://scache.hatenablog.com/entry/2018/03/21/004926","author_name":"scache","blog_url":"https://scache.hatenablog.com/","blog_title":"scache\u2019s blog","version":"1.0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fscache.hatenablog.com%2Fentry%2F2018%2F03%2F21%2F004926\" title=\"data class\u3067\u914d\u5217\u3092\u4f7f\u3046\u6642\u306fequals\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3088\u3046 [Kotlin] - scache\u2019s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"data class\u3067\u914d\u5217\u3092\u4f7f\u3046\u6642\u306fequals\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3088\u3046 [Kotlin]","type":"rich","height":"190","author_url":"https://blog.hatena.ne.jp/scache/","width":"100%"}