how to implement a data-structure in flex that just like LinkedHashSet in Java

拟墨画扇 提交于 2020-01-05 05:53:32

问题


As ArrayCollection in Flex is limited, I'm looking for a data-structure that something like LinkedHashSet in Java, LinkedHashSet maintains a doubly-linked list running through all of its entries,it defines the iteration ordering, which is the order in which elements were inserted into the set (insertion-order).But there is little information about Flex data-structure, so anyone can help me, thanks


回答1:


This library might be worth checking:

http://sibirjak.com/blog/index.php/collections/as3commons-collections/

Also, check this question for suggestions on other libraries.




回答2:


Check out Michael Baczynski's AS3 Data Structures For Game Developers library, it's likely the best example you'll find in AS3. There is a doubly-linked list implementation there. (Which you can just use if you want, rather than implementing your own)

http://lab.polygonal.de/ds/



来源:https://stackoverflow.com/questions/3499129/how-to-implement-a-data-structure-in-flex-that-just-like-linkedhashset-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!