BrightSide Workbench Full Report + Source Code
org.turro.contacts.proposal.NamesMap Class Reference

Public Member Functions

 NamesMap ()
 
Map< String, NameEntrygetCoincidences (String name)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 31 of file NamesMap.java.

Constructor & Destructor Documentation

◆ NamesMap()

org.turro.contacts.proposal.NamesMap.NamesMap ( )

Definition at line 35 of file NamesMap.java.

35  {
36  load();
37  }

Member Function Documentation

◆ getCoincidences()

Map<String, NameEntry> org.turro.contacts.proposal.NamesMap.getCoincidences ( String  name)

Definition at line 39 of file NamesMap.java.

39  {
40  Map<String, NameEntry> map = new HashMap<String, NameEntry>();
41  for(Map.Entry<String, String> e : names.entrySet()) {
42  int soundex = Soundex.difference(e.getKey(), name);
43  if(soundex > 80) {
44  map.put(e.getKey(), new NameEntry(soundex, e.getValue()));
45  }
46  }
47  return map;
48  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: