From 527807b581ee90fa6cfdecd5ed587068b41ee743 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 5 Sep 2018 20:24:29 +0800 Subject: [PATCH] add constructor for MutablePsychomatrix from Psychomatrix --- .../PsychomatrixBase/domain/entities/MutablePsychomatrix.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/MutablePsychomatrix.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/MutablePsychomatrix.kt index 5a83acd..3c446dd 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/MutablePsychomatrix.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/MutablePsychomatrix.kt @@ -15,6 +15,8 @@ class MutablePsychomatrix(date: DateTime) : Psychomatrix(date) { private val mutableOperationsHistory: MutableList = ArrayList() + constructor(psychomatrix: Psychomatrix): this(psychomatrix.date) + val operationsHistory: List get() = mutableOperationsHistory