BrightSide Workbench Full Report + Source Code
ScheduledTaskComparator.java
Go to the documentation of this file.
1
/*
2
* TurrĂ³ i Cutiller Foundation. License notice.
3
* Copyright (C) 2017 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Affero General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Affero General Public License for more details.
14
*
15
* You should have received a copy of the GNU Affero General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
package
org.turro.scheduler.motor;
20
21
import
java.util.Comparator;
22
import
org.turro.util.CompareUtil;
23
28
@Deprecated
29
public
class
ScheduledTaskComparator
implements
Comparator<ScheduledTask> {
30
31
@Override
32
public
int
compare
(
ScheduledTask
o1,
ScheduledTask
o2) {
33
int
result = CompareUtil.compare(o1.
getName
(), o2.
getName
());
34
if
(result == 0) {
35
result = CompareUtil.compare(o1.
getDescription
(), o2.
getDescription
());
36
}
37
if
(result == 0) {
38
result = CompareUtil.compare(o1.
getData
(), o2.
getData
());
39
}
40
if
(result == 0) {
41
result = CompareUtil.compare(o1.
getImplementation
(), o2.
getImplementation
());
42
}
43
return
result;
44
}
45
46
}
org.turro.scheduler.motor.ScheduledTaskComparator
Definition:
ScheduledTaskComparator.java:29
org.turro.scheduler.motor.ScheduledTaskComparator.compare
int compare(ScheduledTask o1, ScheduledTask o2)
Definition:
ScheduledTaskComparator.java:32
org.turro.scheduler.motor.ScheduledTask
Definition:
ScheduledTask.java:29
org.turro.scheduler.motor.ScheduledTask.getData
String getData()
org.turro.scheduler.motor.ScheduledTask.getDescription
String getDescription()
org.turro.scheduler.motor.ScheduledTask.getName
String getName()
org.turro.scheduler.motor.ScheduledTask.getImplementation
String getImplementation()
TurroProjects
Public
Elephant
elephant-scheduler
src
main
java
org
turro
scheduler
motor
ScheduledTaskComparator.java
Generated on Tue Mar 12 2024 07:01:21 for BrightSide by
1.9.1