On Tuesday, May 9, 2017 at 4:34:48 PM UTC+2, Marcin Okraszewski wrote:
>
> There is indeed something in it. Actually you could have some type of 
> naming convention, like in TJSON (
> https://tonyarcieri.com/introducing-tjson-a-stricter-typed-form-of-json) 
> or TypedJson (https://www.npmjs.com/package/typed-json) to figure out 
> proper types. But then I would need to create eg. ArrayList with the 
> Manuel's trick (the asList() from Polymer). I'll test it. 
>

java.util.Arrays.asList() should be enough 
actually: 
https://github.com/gwtproject/gwt/blob/2.8.1/user/super/com/google/gwt/emul/java/util/Arrays.java#L136
 
(note that the ArrayList there is not java.util.ArrayList, it's an internal 
java.util.Arrays.ArrayList class that directly wraps the array with no 
copy).

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/95e1bd43-b4a6-4b2d-bd89-6cc6fb206631%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to