Home / Development / Documentation / 2.0.44 / TranslTable
TreeGraph 2
 


info.bioinfweb.treegraph.document.io.nexus
Class TranslTable

java.lang.Object
  extended by info.bioinfweb.treegraph.document.io.nexus.TranslTable

public class TranslTable
extends Object

Stores the content of a taxon table in a nexus document. It is possible to access taxon names by their identifier or their position.

Author:
Ben Stöver

Field Summary
private  HashMap<String,Integer> keyHash
           
private  Vector<String> nameList
           
 
Constructor Summary
TranslTable()
           
 
Method Summary
 void add(String key, String value)
           
 void clear()
           
 String get(int pos)
           
 String get(String key)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyHash

private HashMap<String,Integer> keyHash

nameList

private Vector<String> nameList
Constructor Detail

TranslTable

public TranslTable()
Method Detail

add

public void add(String key,
                String value)

size

public int size()

get

public String get(int pos)

get

public String get(String key)

clear

public void clear()