Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Iterator to allow iterating over all entries of a trie #2

Open
cowtowncoder opened this issue May 31, 2010 · 0 comments
Open

Add Iterator to allow iterating over all entries of a trie #2

cowtowncoder opened this issue May 31, 2010 · 0 comments

Comments

@cowtowncoder
Copy link
Contributor

It would be useful to allow iteration over entries of a trie -- TrieDumper already implements this for simple output, but this would have other uses as well, esp. converting to other data structs.

Given that internal storage is nothing like that for Maps, the primary interface should NOT be Map's iterator (that would give wrong ideas of optimal usage), but for compatibility it is possible to also provide access as Map.Entry instances (for JDK Maps this is optimal interface because entries returned are part of Map; for trie there is no such internal structure to use).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant