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

Public Member Functions

int compare (IContact o1, IContact o2)
 
int compare (IContact o1, IContact o2)
 

Detailed Description

Member Function Documentation

◆ compare() [1/2]

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

Definition at line 28 of file elephant-plugins/src/main/java/org/turro/plugin/contacts/IContactNameComparator.java.

28  {
29  if(o1 == null && o2 == null) {
30  return 0;
31  } else if(o1 == null && o2 != null) {
32  return -1;
33  } else if(o1 != null && o2 == null) {
34  return 1;
35  } else {
36  return o1.getName().compareToIgnoreCase(o2.getName());
37  }
38  }
Here is the call graph for this function:

◆ compare() [2/2]

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

Definition at line 29 of file elephant/src/main/java/org/turro/plugin/contacts/IContactNameComparator.java.

29  {
30  if(o1 == null && o2 == null) {
31  return 0;
32  } else if(o1 == null && o2 != null) {
33  return -1;
34  } else if(o1 != null && o2 == null) {
35  return 1;
36  } else {
37  return o1.getName().compareToIgnoreCase(o2.getName());
38  }
39  }
Here is the call graph for this function:

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