[osmosis-dev] Tags class

Marcus Wolschon Marcus at Wolschon.biz
Thu Feb 5 05:13:37 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jochen Topf schrieb:
> Having way.getTags().getIterator() and way.getTags().findByKey("x")
> seems a bit cleaner to me than way.getTagsIterator() and
> way.findTagByKey("x") etc. Also if it is done as a child class of List
> or Container or something we'll get some things for free, like the
> Iterator stuff.

Well, you`ll have to implement it twice then.
Once for the unmodifyable lists/maps in the Entity-Classes
and once for the mutable lists(WayNodes, RelationMembers)/maps(Tag,
RelationMembers)
in the Way/Node/Relation-Builder -classes.

Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmKdYEACgkQf1hPnk3Z0cSnSQCgoCrC5YBwZeLlin14LgfPJuQg
J9QAoL09t5+k4GH5/tWMv2p7wJSRyaau
=nPdi
-----END PGP SIGNATURE-----




More information about the osmosis-dev mailing list