Extracted ZeroString

This commit is contained in:
dankito 2022-02-17 01:21:22 +01:00
parent 2788c0e686
commit 51c09dab7b
1 changed files with 4 additions and 2 deletions

View File

@ -6,11 +6,13 @@ open class Amount(
) {
companion object {
val Zero = Amount("0,")
val ZeroString = "0,"
val Zero = Amount(ZeroString)
}
internal constructor() : this("") // for object deserializers
internal constructor() : this(ZeroString) // for object deserializers
override fun equals(other: Any?): Boolean {