Given a trie with keys 'abc' 'abcde' & 'abcdefgh'
I wish to have a method which when given 'abcdefg'
returns the entry whose key is 'abcde'.
That is the entry whose key is the longest prefix matching the given string.
I have to do a bit of testing but I believe the method already exists.
AbstractPatriciaTrie.getNearestEntryForKey(Object key);
but it is declared package rather than public.