add licence info
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / DistributionNodeComparator.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9 package eu.etaxonomy.cdm.api.service;
10
11 import java.util.Comparator;
12
13 import eu.etaxonomy.cdm.common.TreeNode;
14 import eu.etaxonomy.cdm.model.description.Distribution;
15
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());
19 }
20 }