From cddcfa858eff531422ce76d270549f7186bb0b9e Mon Sep 17 00:00:00 2001 From: andrzej Date: Tue, 25 Jul 2006 18:32:02 +0000 Subject: [PATCH] Added marshaller for longs. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1881 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/util/ValueMarshaller.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/java/com/samskivert/util/ValueMarshaller.java b/src/java/com/samskivert/util/ValueMarshaller.java index 092b2c8e..24f267c6 100644 --- a/src/java/com/samskivert/util/ValueMarshaller.java +++ b/src/java/com/samskivert/util/ValueMarshaller.java @@ -77,6 +77,13 @@ public class ValueMarshaller } }); + // and longs + _parsers.put(Long.TYPE, new Parser() { + public Object parse (String source) throws Exception { + return Long.valueOf(source); + } + }); + // and floats _parsers.put(Float.TYPE, new Parser() { public Object parse (String source) throws Exception {