Package org.biojava.nbio.core.search.io
Class Hit
- java.lang.Object
-
- org.biojava.nbio.core.search.io.Hit
-
- All Implemented Interfaces:
java.lang.Iterable<Hsp>
public abstract class Hit extends java.lang.Object implements java.lang.Iterable<Hsp>
This class models a search Hit. You will retrieve a list of this using iterator of a Result Designed by Paolo Pavan. You may want to find my contacts on Github and LinkedIn for code info or discuss major changes. https://github.com/paolopavan- Author:
- Paolo Pavan
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Implements conceptual comparisons of search results.java.lang.String
getHitAccession()
java.lang.String
getHitDef()
java.lang.String
getHitId()
int
getHitLen()
int
getHitNum()
Sequence
getHitSequence()
returns the reference to the original and whole sequence hit in the database.int
hashCode()
java.util.Iterator<Hsp>
iterator()
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Implements conceptual comparisons of search results. Fields unrelated to search are deliberately not considered.- Overrides:
equals
in classjava.lang.Object
- Returns:
-
getHitNum
public int getHitNum()
-
getHitId
public java.lang.String getHitId()
-
getHitDef
public java.lang.String getHitDef()
-
getHitAccession
public java.lang.String getHitAccession()
-
getHitLen
public int getHitLen()
-
getHitSequence
public Sequence getHitSequence()
returns the reference to the original and whole sequence hit in the database. Available only if the ResultFactory implements setHitReferences and it was used before the parsing with SearchIO- Returns:
- Sequence object
-
-