◆ compare()
Definition at line 33 of file TypedRelationComparator.java.
34 int result = -CompareUtil.compareNull(o1.getContact(), o2.getContact());
36 result = -CompareUtil.compareNull(o1.getBusiness(), o2.getBusiness());
39 RelationType rt1 = RelationType.getFromString(o1.getRelationType()),
40 rt2 = RelationType.getFromString(o2.getRelationType());
41 if(rt1 !=
null && rt2 !=
null) {
42 result = CompareUtil.compare((rt1.getGroup() * 10000) + rt1.getLevel(), (rt2.getGroup() * 10000) + rt2.getLevel());
46 result = CompareUtil.compare(o1.getFormattedDescription(), o2.getFormattedDescription());
49 String id1 = o1.getContact() ==
null ? null : o1.getContact().getId(),
50 id2 = o2.getContact() ==
null ? null : o2.getContact().getId();
51 result = CompareUtil.compare(id1, id2);
54 String id1 = o1.getBusiness()==
null ? null : o1.getBusiness().getId(),
55 id2 = o2.getBusiness()==
null ? null : o2.getBusiness().getId();
56 result = CompareUtil.compare(id1, id2);
59 result = CompareUtil.compare(o1.getId(), o2.getId());
The documentation for this class was generated from the following file: