Browse Source

Add serialization for BigDecimal

master
Peter Selby 7 months ago
parent
commit
9d2dbafdb5
  1. 5
      src/valuehash/impl.clj

5
src/valuehash/impl.clj

@ -108,4 +108,7 @@
(map map-entry->byte-array)
(sort ba-comparator)
(cons map-sep)
(join-byte-arrays))))
(join-byte-arrays)))
java.math.BigDecimal
(to-byte-array [this]
(.getBytes (.toString this))))
Loading…
Cancel
Save