2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.api
.service
;
11 import java
.util
.Comparator
;
13 import eu
.etaxonomy
.cdm
.common
.TreeNode
;
14 import eu
.etaxonomy
.cdm
.model
.description
.Distribution
;
16 public class DistributionNodeComparator
implements Comparator
<TreeNode
<Distribution
>>{
17 public int compare(TreeNode
<Distribution
> arg0
, TreeNode
<Distribution
> arg1
) {
18 return arg0
.data
.getArea().getLabel().compareTo(arg1
.data
.getArea().getLabel());