1 |
28e5e3c3
|
Fabian Reimeier
|
// $Id$
|
2 |
|
|
/**
|
3 |
|
|
* Copyright (C) 2018 EDIT
|
4 |
|
|
* European Distributed Institute of Taxonomy
|
5 |
|
|
* http://www.e-taxonomy.eu
|
6 |
|
|
*
|
7 |
|
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8 |
|
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9 |
|
|
*/
|
10 |
|
|
package eu.etaxonomy.cdm.model.common;
|
11 |
|
|
|
12 |
|
|
import java.util.Comparator;
|
13 |
|
|
|
14 |
|
|
import eu.etaxonomy.cdm.model.location.NamedArea;
|
15 |
|
|
|
16 |
|
|
/**
|
17 |
|
|
* @author freimeier
|
18 |
53db84af
|
Andreas Müller
|
* @since 07.02.2018
|
19 |
28e5e3c3
|
Fabian Reimeier
|
*
|
20 |
|
|
*/
|
21 |
|
|
public class AlphabeticallyAscendingNamedAreaComparator implements Comparator<NamedArea>{
|
22 |
|
|
|
23 |
|
|
@Override
|
24 |
|
|
public int compare(NamedArea o1, NamedArea o2) {
|
25 |
|
|
return o2.compareTo(o1);
|
26 |
|
|
}
|
27 |
|
|
}
|