add constructor for MutablePsychomatrix from Psychomatrix

This commit is contained in:
InsanusMokrassar 2018-09-05 20:24:29 +08:00
parent 3cc4c06e6a
commit 527807b581

View File

@ -15,6 +15,8 @@ class MutablePsychomatrix(date: DateTime) : Psychomatrix(date) {
private val mutableOperationsHistory: MutableList<Operation> = ArrayList() private val mutableOperationsHistory: MutableList<Operation> = ArrayList()
constructor(psychomatrix: Psychomatrix): this(psychomatrix.date)
val operationsHistory: List<Operation> val operationsHistory: List<Operation>
get() = mutableOperationsHistory get() = mutableOperationsHistory