I am using ConcurrentRadixTree to get the Country Code out of a phone number , by adding all country code numbers to the radixtree and they using getClosestKeys it is working perfectly except when i receive a wrong number (i mean i number that is fake and does not have a valid country code) for example :
The Tree is filled with countryCode 81,82,84,85 .. and i am trying to get the code of 83123123123
In this case i am getting back a list of keys 81,82,84,85 . as they all start with 8 but to me it is wrong i need the whole key to be included in the text i am searching for so i should get null
Is their any method that can do that directly ?