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
;
12 import java
.util
.HashMap
;
16 import eu
.etaxonomy
.taxeditor
.bulkeditor
.IBulkEditorSortProvider
;
20 * @created Dec 14, 2010
22 public class AbstractSortProvider
<T
> implements IBulkEditorSortProvider
<T
> {
24 protected Map
<String
, Comparator
<T
>> comparators
= new HashMap
<>();
27 public Map
<String
, Comparator
<T
>> getComparators() {
32 public Set
<String
> getComparatorNames() {
33 return comparators
.keySet();
37 public Comparator
<T
> getComparatorByName(String name
) {
38 return comparators
.get(name
);