06-04-2013, 07:32 PM
case class Read(
userId: Long,
itemId: Long,
date: Date
) {
override def toString() = "Read#" + userId + "-" + itemId
}
case class Read(userId: Long, itemId: Long, date: Date) {
override def toString = s"Read#$userId - $itemId"
}
c'est plus beau avec les interpolations de string, moins "java-like" non ^^