3 Sep 15:32
[groovy-user] Marshaling list to string and vice versa
From: Darryl Pentz <djpentz@...>
Subject: [groovy-user] Marshaling list to string and vice versa
Newsgroups: gmane.comp.lang.groovy.user
Date: 2008-09-03 13:34:04 GMT
Subject: [groovy-user] Marshaling list to string and vice versa
Newsgroups: gmane.comp.lang.groovy.user
Date: 2008-09-03 13:34:04 GMT
I found that if I do: def someList = ["foo", "bar"] String myStr = someList.toString() myStr will have "[foo, bar]" Is there any way to reverse that marshaling, so something along the lines of: def someList = myStr as List which is incorrect because it makes someList = ['[', 'f', 'o', 'o', ....] etc. Or do I have to do it the hard way splitting and whatnot? thanks, Darryl -- -- View this message in context: http://www.nabble.com/Marshaling-list-to-string-and-vice-versa-tp19289274p19289274.html Sent from the groovy - user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
RSS Feed