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.
10 package eu
.etaxonomy
.taxeditor
.bulkeditor
.input
.sortprovider
;
12 import java
.util
.Comparator
;
13 import java
.util
.HashMap
;
17 import eu
.etaxonomy
.taxeditor
.bulkeditor
.IBulkEditorSortProvider
;
21 * @created Dec 14, 2010
24 public class AbstractSortProvider
<T
> implements IBulkEditorSortProvider
<T
> {
26 Map
<String
, Comparator
<T
>> comparators
= new HashMap
<String
, Comparator
<T
>>();
29 * @see eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorSortProvider#getComparators()
32 public Map
<String
, Comparator
<T
>> getComparators() {
37 * @see eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorSortProvider#getComparatorNames()
40 public Set
<String
> getComparatorNames() {
41 return comparators
.keySet();
45 * @see eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorSortProvider#getComparatorByName(java.lang.String)
48 public Comparator
<T
> getComparatorByName(String name
) {
49 return comparators
.get(name
);