Representing money page added

11 views
Skip to first unread message

Manfred Moser

unread,
Aug 10, 2010, 12:18:26 AM8/10/10
to javapractices-dot-com-discuss
Hi!

I added a page for representing money with a little enhancement I
suggest..

manfred

John O'Hanley

unread,
Aug 10, 2010, 6:43:57 PM8/10/10
to javapractices-...@googlegroups.com
Hi Manfred,

I don't understand the use case in which the existing code breaks. Why would
the aCurrencyIfEmpty param differ from the currency used by the items in the
Collection? Why can't you make it match the currency of the items in the
Collection?

Please clarify with a full example.

- John O'Hanley.

> --
> You received this message because you are subscribed to the Google Groups
> "javapractices-dot-com-discuss" group.
> To post to this group, send email to
> javapractices-...@googlegroups.com.
> To unsubscribe from this group, send email to
> javapractices-dot-co...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/javapractices-dot-com-discuss?hl=en.
>

Manfred Moser

unread,
Aug 10, 2010, 7:12:47 PM8/10/10
to javapractices-...@googlegroups.com
In my use case the default currency is determined by the user (well
actually the hardware device and locale setting there). However the
collection is determined by a server that provides data based on a
different selection. It is conceivable that a money collection is
returned from the server in a currency that is different from the
device setting. I would like this to show up, but also show up as zero
value with the other currency if no server side data is available..

manfred

Reply all
Reply to author
Forward
0 new messages