From c6ab4b78571904e7636d21c7b9e729c508845efd Mon Sep 17 00:00:00 2001 From: slisson Date: Mon, 25 Nov 2024 12:58:20 +0100 Subject: [PATCH] fix(model-datastructure): implement IKVEntryReference.toString --- .../kotlin/org/modelix/model/lazy/NonWrittenEntry.kt | 4 ++++ .../commonMain/kotlin/org/modelix/model/lazy/WrittenEntry.kt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/NonWrittenEntry.kt b/model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/NonWrittenEntry.kt index b1dfe3b069..a47e9ae848 100644 --- a/model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/NonWrittenEntry.kt +++ b/model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/NonWrittenEntry.kt @@ -50,4 +50,8 @@ class NonWrittenEntry : IKVEntryReference { deserialized.isWritten = true } } + + override fun toString(): String { + return hash + } } diff --git a/model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/WrittenEntry.kt b/model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/WrittenEntry.kt index 13bdf81d9a..008da219d8 100644 --- a/model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/WrittenEntry.kt +++ b/model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/WrittenEntry.kt @@ -43,4 +43,8 @@ class WrittenEntry( override fun write(store: IDeserializingKeyValueStore) {} override fun getDeserializer(): (String) -> E = deserializer + + override fun toString(): String { + return hash + } }