Gang,
The new EntityStoreTestSuite is testing whether ordering (iterator()) is
preserved in the NamedAssociation, so that keys are returned in the same
order they were added.
This is achieved with a LinkedHashMap internally and Map ES will
(de)serialize that map in order.
For Preferences ES and Cassandra ES, this is not so, each entry is stored
"natively".
Now, the question is; Is ORDERING in NamedAssociation a defined semantic
behavior, or simply a side effect of current implementation?
Cheers
--
Niclas Hedhman, Software Developer
http://polygene.apache.org - New Energy for Java
|