I have the following variable to save properties with its clave:valor
Map<String, String> properties = new LinkedHashMap<>();
properties.put("lat","48.756189");
properties.put("longitude","94.218750");
properties.put("name","Gengis Kan");
I would like to obtain with a function if the key exists from some candidates for example latitude|lat|y
if it finds one in order returns true
To separate the candidates I have
String candidatesStr = "latitude|lat|y"
String[] candidates = candidatesStr.split("|");
I need to obtain the existing keys in properties
and compare with some candidate if concide returns true
As a complement it would be to obtain from the candidates the name of the first one that has been found and then be able to obtain its value properties.get(candidato_encontrado)