Wednesday, August 14, 2019

Re: elemental2: Native maps with primitive types?

yep

that worked. thanks a bunch.

I have seen the @DoNotAutoBox and I tried with Integer, Number, JsNumber.

Note: I can put int in the JsPropertyMap but I cannot read it back. So
I cast it to (double) and the then to (int). I believe that is because
JavaScript does not have int type.

thanks again.


On Wed, Aug 14, 2019 at 5:38 PM Jens <jens.nehlmeier@gmail.com> wrote:
>
> JsPropertyMap.set(key, value) is marked with @DoNotAutoBox, so I guess you should be able to use JsPropertyMap<Object> and set int, float, double into it without them being auto boxed.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/dd759896-4174-411d-b870-593054e1c660%40googlegroups.com.



--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKbOjEzHuG5ZC7igRyvzrkLt26qBWkxNUeuWL%2BZNbKCo%2BcShgA%40mail.gmail.com.

No comments:

Post a Comment