]> gitweb @ CieloNegro.org - task-reporter.git/blobdiff - src/main/scala/jp/ymir/taskReporter/core/Report.scala
wip
[task-reporter.git] / src / main / scala / jp / ymir / taskReporter / core / Report.scala
diff --git a/src/main/scala/jp/ymir/taskReporter/core/Report.scala b/src/main/scala/jp/ymir/taskReporter/core/Report.scala
new file mode 100644 (file)
index 0000000..5fa1ceb
--- /dev/null
@@ -0,0 +1,14 @@
+package jp.ymir.taskReporter.core
+import java.util.Calendar
+import scala.collection.immutable._
+
+class Report(private val _date: Calendar) {
+  private var _tasks : Seq[Task] = Vector()
+
+  def date = _date
+
+  def +=(task: Task) {
+    require(task.date == _date)
+    _tasks = _tasks :+ task
+  }
+}