Package vcf

Class IntervalVcfIt<E extends GTRec>

java.lang.Object
vcf.IntervalVcfIt<E>
Type Parameters:
E - the type parameter
All Implemented Interfaces:
FileIt<E>, SampleFileIt<E>, Closeable, AutoCloseable, Iterator<E>

public final class IntervalVcfIt<E extends GTRec> extends Object implements SampleFileIt<E>

Class IntervalVcfIterator is a sample file iterator whose next() method returns a marker container.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new IntervalVcfIterator instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the input stream and releases any system resources that are associated with it.
    Returns the file from which the data are read, or null if the data are read from standard input or if the data source is unknown.
    boolean
    Returns true if the iteration has more elements.
    Returns the next element in the iteration.
    void
    The remove method is not supported by this iterator.
    Returns the list of samples.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface blbutil.FileIt

    toString

    Methods inherited from interface java.util.Iterator

    forEachRemaining
  • Constructor Details

    • IntervalVcfIt

      public IntervalVcfIt(SampleFileIt<E> it, ChromInterval chromInt)
      Constructs a new IntervalVcfIterator instance.
      Parameters:
      it - an iterator whose next() method returns a marker container
      chromInt - a chromosome interval
      Throws:
      NullPointerException - if it == null || interval == null
  • Method Details

    • file

      public File file()
      Description copied from interface: FileIt
      Returns the file from which the data are read, or null if the data are read from standard input or if the data source is unknown.
      Specified by:
      file in interface FileIt<E extends GTRec>
      Returns:
      the file from which the data are read, or null if the data are read from standard input or if the data source is unknown
    • samples

      public Samples samples()
      Description copied from interface: SampleFileIt
      Returns the list of samples.
      Specified by:
      samples in interface SampleFileIt<E extends GTRec>
      Returns:
      the list of samples
    • hasNext

      public boolean hasNext()
      Returns true if the iteration has more elements.
      Specified by:
      hasNext in interface Iterator<E extends GTRec>
      Returns:
      true if the iteration has more elements.
    • next

      public E next()
      Returns the next element in the iteration.
      Specified by:
      next in interface Iterator<E extends GTRec>
      Returns:
      the next element in the iteration.
      Throws:
      NoSuchElementException - if the iteration has no more elements.
    • remove

      public void remove()
      The remove method is not supported by this iterator.
      Specified by:
      remove in interface Iterator<E extends GTRec>
      Throws:
      UnsupportedOperationException - if this method is invoked
    • close

      public void close()
      Description copied from interface: FileIt
      Closes the input stream and releases any system resources that are associated with it. If the input stream is already closed then invoking this method has no effect.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface FileIt<E extends GTRec>