BrightSide Workbench Full Report + Source Code
SaleActionComparator.java
Go to the documentation of this file.
1
package
org.turro.crm.zul.sale;
2
3
import
java.util.Comparator;
4
import
org.turro.crm.entity.SaleAction;
5
import
org.turro.util.CompareUtil;
6
11
public
class
SaleActionComparator
implements
Comparator {
12
13
@Override
14
public
int
compare
(Object o1, Object o2) {
15
SaleAction
sa1 = (
SaleAction
) o1, sa2 = (
SaleAction
) o2;
16
int
result = CompareUtil.compare(sa1.
getActionDate
(), sa2.getActionDate());
17
if
(result == 0) {
18
result = CompareUtil.compare(sa1.
getFinalDate
(), sa2.getFinalDate());
19
}
20
if
(result == 0) {
21
result = CompareUtil.compare(sa1.
getId
(), sa2.getId());
22
}
23
return
result;
24
}
25
26
}
org.turro.crm.entity.SaleAction
Definition:
SaleAction.java:23
org.turro.crm.entity.SaleAction.getFinalDate
Date getFinalDate()
Definition:
SaleAction.java:98
org.turro.crm.entity.SaleAction.getId
long getId()
Definition:
SaleAction.java:106
org.turro.crm.entity.SaleAction.getActionDate
Date getActionDate()
Definition:
SaleAction.java:58
org.turro.crm.zul.sale.SaleActionComparator
Definition:
SaleActionComparator.java:11
org.turro.crm.zul.sale.SaleActionComparator.compare
int compare(Object o1, Object o2)
Definition:
SaleActionComparator.java:14
TurroProjects
Public
BrightSide
elephant-crm
src
main
java
org
turro
crm
zul
sale
SaleActionComparator.java
Generated on Tue Mar 12 2024 07:01:20 for BrightSide by
1.9.1