<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hisaichi5518</author_name>
  <author_url>https://blog.hatena.ne.jp/hisaichi5518/</author_url>
  <blog_title>パルカワ2</blog_title>
  <blog_url>https://hisaichi5518.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>Kotlinではdata classはこのように書ける。 data class User(val name: String, val age: Int) これは、 ただのクラスではなくて equals() / hashCode() / toString() / copy() が実装されるクラスになる。 なので次のコードはtrueが返る。 User(name: &quot;hisaichi5518&quot;, age: 1) == User(name: &quot;hisaichi5518&quot;, age: 1) //=&gt; true Dartでこういうクラスを作ってみて、上記のような比較するとfalseが返ってしまう。 cla…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhisaichi5518.hatenablog.jp%2Fentry%2F2019%2F12%2F02%2F205539&quot; title=&quot;Dart で簡単に data class を作りたい - パルカワ2&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-02 20:55:39</published>
  <title>Dart で簡単に data class を作りたい</title>
  <type>rich</type>
  <url>https://hisaichi5518.hatenablog.jp/entry/2019/12/02/205539</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
