commit | author | age
|
d14d78
|
1 |
/* |
U |
2 |
Dateiverwaltung - File management in your browser |
|
3 |
Copyright (C) 2017 Ulrich Hilger, http://uhilger.de |
|
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 |
|
7 |
published by the Free Software Foundation, either version 3 of the |
|
8 |
License, or (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 de.uhilger.filecms.pub; |
|
20 |
|
|
21 |
import java.util.Comparator; |
|
22 |
import java.util.logging.Logger; |
|
23 |
|
|
24 |
/** |
|
25 |
* |
|
26 |
* @author ulrich |
|
27 |
*/ |
|
28 |
public abstract class AbstractComparator implements Comparator { |
|
29 |
|
|
30 |
protected static final Logger logger = Logger.getLogger(AbstractComparator.class.getName()); |
|
31 |
|
|
32 |
public static final String ORDER_ASC = "asc"; |
|
33 |
public static final String ORDER_DESC = "desc"; |
|
34 |
|
|
35 |
protected String order; |
|
36 |
|
|
37 |
@Override |
|
38 |
public abstract int compare(Object o1, Object o2); |
|
39 |
|
|
40 |
|
|
41 |
} |