the singularity of being and nothingness
Using Java LinkedHashMap for Sorted Structures
Chalk this one up to “I never thought I’d need this, but glad it’s there!”
I’m currently working on a little project where I wanted to have an honest-to-goodness struct of structs, but to have the structure retain the order of the child structures as they are created. Of course, ColdFusion structures do not have any particular ordering, so forget that route.
Fortunately, you can create a Java LinkedHashMap to accomplish this, and there’s very little impact to the normal course of development in working with structures. In fact, I think the only real difference is case sensitivity.
Anyway, here’s where I found this nugget. Enjoy 🙂
Print article | This entry was posted by existdissolve on December 17, 2010 at 5:24 am, and is filed under ColdFusion. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |