Book a Demo

Author Topic: Collection - similar to a Java map?  (Read 2781 times)

palim

  • EA User
  • **
  • Posts: 31
  • Karma: +1/-0
    • View Profile
Collection - similar to a Java map?
« on: March 03, 2010, 04:24:38 am »
Hello guys,

I`m just wondering if it is possible to use a collection similar to a Java map?
Does anybody have a code example for this?

As key, a string should be used  ::)
The value of this key would also be a string.


Best regards,
palim

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Collection - similar to a Java map?
« Reply #1 on: March 03, 2010, 09:35:12 pm »
Palim,

Which collection are you talking about? The EA.Collection?

Geert

palim

  • EA User
  • **
  • Posts: 31
  • Karma: +1/-0
    • View Profile
Re: Collection - similar to a Java map?
« Reply #2 on: March 03, 2010, 10:53:57 pm »
Hi Geert,

yes, I`m talking about EA.Collection.
Can it be used as a Java map?

Quote
Palim,

Which collection are you talking about? The EA.Collection?

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Collection - similar to a Java map?
« Reply #3 on: March 03, 2010, 11:07:41 pm »
Palim,

The EA.Collection is a monstrocity, avoid using it at all costs.
Instead use a "real" collection provided by the language framework to iterate over objects etc.

Geert