Project

General

Profile

« Previous | Next » 

Revision 6e52cede

Added by Patrick Plitzner almost 6 years ago

ref #6330 Adapt comparator to specific sorting

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/SourceComparator.java
12 12
 * @date Apr 13, 2016
13 13
 *
14 14
 */
15
public class SourceComparator implements Comparator<OriginalSourceBase> {
15
public class SourceComparator  <T extends OriginalSourceBase> implements Comparator<T> {
16 16
    @Override
17
    public int compare(OriginalSourceBase o1, OriginalSourceBase o2) {
17
    public int compare(T o1, T o2) {
18 18
        int id1 = o1.getId();
19 19
        int id2 = o2.getId();
20 20
        OriginalSourceType type1 = o1.getType();

Also available in: Unified diff