Project

General

Profile

« Previous | Next » 

Revision cd19940f

Added by Katja Luther about 7 years ago

fix details view for authorship cache and referencing objects view

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/sortprovider/AbstractDateComparator.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
21 21
 * @version 1.0
22 22
 */
23 23
public abstract class AbstractDateComparator<T extends ICdmBase> implements Comparator<T>{
24
	
25
	public int compare(T o1, T o2) {		
24

  
25
	@Override
26
    public int compare(T o1, T o2) {
27
	    if (o1.equals(o2)){
28
	        return 0;
29
	    }
30

  
26 31
		return getDate(o1).compareTo(getDate(o2));
27 32
	};
28
	
33

  
29 34
	protected abstract DateTime getDate(T object);
30 35
}

Also available in: Unified diff