Skip to content

Commit 01812f5

Browse files
committed
fix(model-datastructure): implement IKVEntryReference.toString
1 parent dd1fe1d commit 01812f5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/NonWrittenEntry.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ class NonWrittenEntry<E : IKVValue> : IKVEntryReference<E> {
3737
deserialized.isWritten = true
3838
}
3939
}
40+
41+
override fun toString(): String {
42+
return hash
43+
}
4044
}

model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/WrittenEntry.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@ class WrittenEntry<E : IKVValue>(
3030
override fun write(store: IDeserializingKeyValueStore) {}
3131

3232
override fun getDeserializer(): (String) -> E = deserializer
33+
34+
override fun toString(): String {
35+
return hash
36+
}
3337
}

0 commit comments

Comments
 (0)