java.lang.Object
com.compomics.util.experiment.identification.matches_iterators.MatchesIterator
com.compomics.util.experiment.identification.matches_iterators.SpectrumMatchesIterator

public class SpectrumMatchesIterator
extends MatchesIterator
An iterator for spectrum matches.
Author:
Marc Vaudel, Harald Barsnes, Dominik Kopczynski
  • Constructor Details

    • SpectrumMatchesIterator

      public SpectrumMatchesIterator()
      Empty default constructor
    • SpectrumMatchesIterator

      public SpectrumMatchesIterator​(Identification identification, WaitingHandler waitingHandler, boolean displayProgress)
      Constructor.
      Parameters:
      identification - the identification where to get the matches from
      waitingHandler - the waiting handler allowing displaying progress and canceling the process
      displayProgress - boolean indicating whether the progress of this method should be displayed on the waiting handler
    • SpectrumMatchesIterator

      public SpectrumMatchesIterator​(long[] keys, Identification identification, WaitingHandler waitingHandler, boolean displayProgress)
      Constructor.
      Parameters:
      keys - the keys of the objects
      identification - the identification where to get the matchesloadPs from
      waitingHandler - the waiting handler allowing displaying progress and canceling the process
      displayProgress - boolean indicating whether the progress of this method should be displayed on the waiting handler
    • SpectrumMatchesIterator

      public SpectrumMatchesIterator​(long[] keys, Identification identification, WaitingHandler waitingHandler, boolean displayProgress, String filters)
      Constructor.
      Parameters:
      keys - the keys of the objects
      identification - the identification where to get the matchesloadPs from
      waitingHandler - the waiting handler allowing displaying progress and canceling the process
      displayProgress - boolean indicating whether the progress of this method should be displayed on the waiting handler
      filters - filters for the class
  • Method Details

    • next

      public SpectrumMatch next()
      Returns the next match and updates the buffer. Null if the iterator is done iterating.
      Returns:
      the next match