ã2017/9/9 Scalaé¢è¥¿Summit 2017ããã2017/10/21 é¢ã¸ã£ã'17 10æ度ã ãã2018/3/18 Scala Matsuri 2018ãã§ã話ãããå®è·µScalaã§DDD ã®çºè¡¨è³æã§ãã (English version -> https://speakerdeâ¦
Developers Summit 2014 ãPlay2/Scalaã§ãã¡ã¤ã³é§åè¨è¨ãå©ç¨ãã大è¦æ¨¡Webã¢ããªã±ã¼ã·ã§ã³ã®ã¹ã¯ã©ã éçºã®åæã
32. trait Entity[ID <: Identity[_]] { ! /** ã¨ã³ãã£ãã£ã®èå¥åã */ val identity: ID ! override final def hashCode: Int = 31 * identity.## ! override final def equals(obj: Any): Boolean = obj match { case that: Entity[_] => identity == that.identity case _ => false } ! } 33. trait Identity[+A] extends Serializable { ! def value: A ! } ! object EmptyIdentity extends Identity[Nothing] { ! def value = throw E
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}