Package PamguardMVC

Class ChannelIterator<E extends PamDataUnit>

java.lang.Object
PamguardMVC.PamDataUnitIterator<E>
PamguardMVC.ChannelIterator<E>
All Implemented Interfaces:
Iterator<E>, ListIterator<E>

public class ChannelIterator<E extends PamDataUnit> extends PamDataUnitIterator<E>
An iterator that has a bit more functionality than a basic iterator.
It's main enhancement is to use a channel map match to PamDataUnits, so that it only returns data units that have an overlap in channels with the given channel map (which could be 0xFFFFFFFF).
It also has a couple of extra searches to getPreceeding() and getFollowing() data units.
This class specifically matches the channelMap field. To match the sequenceMap, use the SequenceIterator class instead.
Author:
Doug Gillespie
  • Constructor Details

    • ChannelIterator

      public ChannelIterator(PamDataBlock<E> pamDataBlock, int channelMap, int whereFrom)
      An iterator that has a bit more functionality than a basic iterator.
      It's main enhancement is to use a channel map match to PamDataUnits, so that it only returns data units that have an overlap in channels with the given channel map (which could be 0xFFFFFFFF).
      It also has a couple of extra searches to getPreceeding() and getFollowing() data units.
      This class specifically matches the channelMap field. To match the sequenceMap, use the SequenceIterator class instead.
      Parameters:
      pamDataBlock - Datablock containing the data
      channelMap - channel map (requires overlap, or exact match)
      whereFrom - start at beginning or end. 0 = beginning; -1 (or PamDatablock.ITERATOR_END) for the end
  • Method Details