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
.taxeditor
.bulkeditor
.input
.sortprovider
;
11 import java
.util
.Comparator
;
13 import org
.joda
.time
.DateTime
;
15 import eu
.etaxonomy
.cdm
.model
.common
.ICdmBase
;
19 * @created Dec 14, 2010
21 public abstract class AbstractDateComparator
<T
extends ICdmBase
> implements Comparator
<T
>{
24 public int compare(T o1
, T o2
) {
29 return getDate(o1
).compareTo(getDate(o2
));
32 protected abstract DateTime
getDate(T object
);