org.biojava3.core.sequence
Class AccessionID
java.lang.Object
org.biojava3.core.sequence.AccessionID
public class AccessionID
- extends java.lang.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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AccessionID
public AccessionID()
AccessionID
public AccessionID(java.lang.String id)
- Parameters:
id -
AccessionID
public AccessionID(java.lang.String id,
DataSource source)
- Parameters:
id - source -
getID
public java.lang.String getID()
- Returns:
- the id
getDataSource
public DataSource getDataSource()
- Returns:
- the source
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object