@Throws(Exception::class) fun lookup(data: String?): String? { val it: Iterator<String> = map.getPrefixedBy(data) return if (!it.hasNext()) null else it.next() }
Return the last String in the set that can be prefixed by this String ( Trie 's are stored in alphabetical order ) . Return null if no such String exist in the current set .