Class NoDigestionIterator
java.lang.Object
com.compomics.util.experiment.identification.protein_sequences.digestion.iterators.NoDigestionIterator
- All Implemented Interfaces:
SequenceIterator
public class NoDigestionIterator extends Object implements SequenceIterator
Iterator for no digestion.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors Constructor Description NoDigestionIterator()
Empty default constructorNoDigestionIterator(ProteinIteratorUtils proteinIteratorUtils, String sequence, double massMin, double massMax)
Constructor. -
Method Summary
Modifier and Type Method Description ExtendedPeptide
getNextPeptide()
Returns the next peptide that can be generated from the iterator.
-
Constructor Details
-
NoDigestionIterator
public NoDigestionIterator()Empty default constructor -
NoDigestionIterator
public NoDigestionIterator(ProteinIteratorUtils proteinIteratorUtils, String sequence, double massMin, double massMax) throws InterruptedExceptionConstructor.- Parameters:
proteinIteratorUtils
- utils for the creation of the peptidessequence
- the sequence to iteratemassMin
- the minimal mass of a peptidemassMax
- the maximal mass of a peptide- Throws:
InterruptedException
- exception thrown if a thread is interrupted
-
-
Method Details
-
getNextPeptide
Description copied from interface:SequenceIterator
Returns the next peptide that can be generated from the iterator. Null if none left.- Specified by:
getNextPeptide
in interfaceSequenceIterator
- Returns:
- the next peptide that can be generated from the iterator
-