[jboss-dev-forums] [Design of JBossCache] - Re: JBCACHE-166 - TreeSet/Map, LinkedHashMap
jason.greene@jboss.com
do-not-reply at jboss.com
Tue Aug 5 21:55:32 EDT 2008
For now I think it makes sense as just a per node option.
Another API possibility would be something like
| enum Sorting {CHILDREN, DATA, BOTH}
| cache.createSortedNode(Fqn fqn, Sorting sorting);
| cache.createSortedNode(Fqn fqn, Sorting sorting, Comparator<?> nodeComp, Comparator<?> dataComp);
|
Then you don't have to worry about the sorting switching back and forth on you, as it would be fixed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168869#4168869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168869
More information about the jboss-dev-forums
mailing list