diff options
Diffstat (limited to 'src/main/scala/reading/models/Book.scala')
-rw-r--r-- | src/main/scala/reading/models/Book.scala | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/scala/reading/models/Book.scala b/src/main/scala/reading/models/Book.scala index 1ee7eb6..7930a63 100644 --- a/src/main/scala/reading/models/Book.scala +++ b/src/main/scala/reading/models/Book.scala @@ -1,15 +1,15 @@ package reading.models -case class Book ( - title: String, - author: String, - year: String, - parts: Int = 1, - period: Option[Period], - genres: Seq[Genre], - themes: Seq[Theme], - programs: Seq[Program], - level: Level +case class Book( + title: String, + author: String, + year: String, + parts: Int = 1, + period: Option[Period], + genres: Seq[Genre], + themes: Seq[Theme], + programs: Seq[Program], + level: Level ) extends Ordered[Book] { def compare(that: Book) = { def formatTitle(title: String) = |