org.biojava3.core.sequence
Class AccessionID

java.lang.Object
  extended by org.biojava3.core.sequence.AccessionID

public class AccessionID
extends Object

Used in Sequences as the unique indentifier. If possible, set the DataSource to know the source of the id. This allows a SequenceProxy to gather features or related sequences Protein->Gene as an example. When parsing a Blast file it is also possible to identify the type of ID

Author:
Scooter Willis

Constructor Summary
AccessionID()
           
AccessionID(String id)
           
AccessionID(String id, DataSource source)
           
 
Method Summary
 boolean equals(Object o)
           
 DataSource getDataSource()
           
 String getID()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessionID

public AccessionID()

AccessionID

public AccessionID(String id)
Parameters:
id -

AccessionID

public AccessionID(String id,
                   DataSource source)
Parameters:
id -
source -
Method Detail

getID

public String getID()
Returns:
the id

getDataSource

public DataSource getDataSource()
Returns:
the source

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object