BrightSide Workbench Full Report + Source Code
org.turro.plugin.contacts.ContactNameComparator Class Reference
Inheritance diagram for org.turro.plugin.contacts.ContactNameComparator:
Collaboration diagram for org.turro.plugin.contacts.ContactNameComparator:

Public Member Functions

 ContactNameComparator (Locale locale)
 
int compare (IContact o1, IContact o2)
 

Detailed Description

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

Definition at line 29 of file ContactNameComparator.java.

Constructor & Destructor Documentation

◆ ContactNameComparator()

org.turro.plugin.contacts.ContactNameComparator.ContactNameComparator ( Locale  locale)

Definition at line 33 of file ContactNameComparator.java.

33  {
34  this.locale = locale;
35  }

Member Function Documentation

◆ compare()

int org.turro.plugin.contacts.ContactNameComparator.compare ( IContact  o1,
IContact  o2 
)

Definition at line 38 of file ContactNameComparator.java.

38  {
39  Collator collator = Collator.getInstance(locale);
40  collator.setStrength(Collator.PRIMARY);
41  return collator.compare(o1.getName(), o2.getName());
42  }
Here is the call graph for this function:

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