1 package jalview.ext.treeviewer;
3 import jalview.datamodel.SequenceI;
8 * Note that this will take anything as a Tree or TreeNode object as no
9 * assumptions can be made about the inheritance structure of Tree or TreeNode
10 * (besides being Objects).
12 * @author kjvanderheide
15 * Tree object that the tree viewer requires.
17 * Tree node object that the tree viewer requires.
19 public interface ExternalTreeBuilderI<T, N>
21 public T buildTree(N treeRoot);
25 public Map<SequenceI, N> getAlignmentBoundNodes();
27 public Map<N, SequenceI> getNodesBoundAlignment();
29 public String generateTreeName();
39 static <K, V> Map<K, V> putWithDuplicationCheck(Map<K, V> map, K key,
42 if (!map.containsKey(key))
48 jalview.bin.Cache.log.warn(
49 "Attempt to add duplicate entry detected for map with key: "
50 + key.toString() + " and value: " + value.toString());