[jboss-user] [JBoss Cache: Core Edition] - Re: NEED HELP : JBoss Cache Iterator
manik.surtani@jboss.com
do-not-reply at jboss.com
Thu Sep 18 10:23:54 EDT 2008
If you want to iterate over nodes, you can walk the tree. Remember that JBC uses a tree structure.
|
| void doStuff()
| {
| doStuffWithNode(cache.getRoot());
| }
|
| void doStuffWithNode(Node n)
| {
| processNode( n );
| Set<Node> children = n.getChildren();
| for (Node child: children) doStuffWithNode( child );
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177450#4177450
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177450
More information about the jboss-user
mailing list