- updated javadoc
authorPatric Plitzner <p.plitzner@bgbm.org>
Tue, 5 Nov 2013 09:58:48 +0000 (09:58 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Tue, 5 Nov 2013 09:58:48 +0000 (09:58 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java

index 3c0b4e9dda1187bb63e2851205b8f7f1eab507c2..2ea0a5d6a4d58e0b1567eb178de9fd9ea02283f2 100644 (file)
@@ -924,24 +924,10 @@ public abstract class AbstractUtility {
 
     /**
      * Orders a Collection of {@link IEnumTerm}s according to the term
-     * hierarchy. The hierarchy will be reduced to two layers: one layer being
-     * the root elements (that have no parents) and the other being their
-     * children and children's children recursively.<br>
-     * The returned map will be be ordered primarily by root elements and
-     * secondarily by the child elements, both ascending alphabetically. <br>
+     * hierarchy. <br>
      * <br>
-     * The reduced hierarchy could look like this:<br>
-     * <ul>
-     * <li>Root1
-     *  <ul>
-     *   <li>child1
-     *   <li>child2
-     *   <li>childOfChild2
-     *  </ul>
-     * <li>root2
-     * <ul><li>child4</ul>
-     * </ul>
-     *
+     * The returned map will be be ordered primarily by root elements,
+     * secondarily by the child elements and their children resp., both ascending alphabetically. <br>
      * @param terms
      *            A {@link Collection} of {@link IEnumTerm}s for which the term
      *            hierarchy should be created
@@ -949,13 +935,6 @@ public abstract class AbstractUtility {
      *         representation via {@link IEnumTerm#getMessage()} as values
      */
     public static <T extends IEnumTerm<T>> LinkedHashMap<T, String> orderTerms(Collection<T> terms) {
-//        Comparator<TermNode<T>> comparator = new Comparator<TermNode<T>>() {
-//            @Override
-//            public int compare(TermNode<T> t1, TermNode<T> t2) {
-//                return t1.getTerm().getMessage().compareTo(t2.getTerm().getMessage());
-//            }
-//        };
-
         TreeSet<TermNode<T>> parentElements = new TreeSet<TermNode<T>>();
         parentElements.addAll(getTermHierarchy(terms));