Esempio n. 1
0
 /**
  * Get an iterator over the reference bases in this context. Will return an empty iterator if this
  * context has no backing data source and/or interval.
  *
  * <p>Call {@link #setWindow} before calling this method if you want to configure the amount of
  * extra reference context to include around the current interval
  *
  * @return iterator over the reference bases in this context
  */
 @Override
 public Iterator<Byte> iterator() {
   return dataSource != null && window != null
       ? dataSource.query(window)
       : new ByteArrayIterator(new byte[0]);
 }