Package org.biojava.nbio.core.search.io
Class Hit
- java.lang.Object
-
- org.biojava.nbio.core.search.io.Hit
-
public abstract class Hit extends Object implements 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(Object obj)
Implements conceptual comparisons of search results.String
getHitAccession()
String
getHitDef()
String
getHitId()
int
getHitLen()
int
getHitNum()
Sequence
getHitSequence()
returns the reference to the original and whole sequence hit in the database.int
hashCode()
Iterator<Hsp>
iterator()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
equals
public boolean equals(Object obj)
Implements conceptual comparisons of search results. Fields unrelated to search are deliberately not considered.
-
getHitNum
public int getHitNum()
-
getHitAccession
public 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
-
-