Permalink
Browse files

Adding a from-string function to time.clj

  • Loading branch information...
1 parent ce56817 commit a71d1ff5c2398f15e6a1653c09344782f930ef98 @ryfow ryfow committed Jul 26, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/clj_hector/time.clj
View
@@ -33,6 +33,11 @@
[bytes]
(TimeUUIDUtils/toUUID bytes))
+(defn from-string
+ "Deserializes a UUID object from a string."
+ [s]
+ (java.util.UUID/fromString s))
+
(defn- byte-array?
[obj]
(= Byte/TYPE (.getComponentType (class obj))))

0 comments on commit a71d1ff

Please sign in to comment.