You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Francis Galiegue edited this page Apr 1, 2014
·
1 revision
Goal
Have a tree visiting model which, at each step, can throw an exception, and which allows return values deciding on the fate of the traversal. Much like Java 7's FileVisitor/FileVisitResult.
Allow implementors to select which nodes of a tree to visit. Guava's TreeTraverser, for instance, allows production of subnodes to visit. But what would you do with a FluentIterable<SchemaTree>? Also, only breadth first is needed (right?). And none of FluentIterable's methods allow to throw checked exceptions. Meh.