
org.snpeff.util.Iterator2Iterable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SnpEff Show documentation
Show all versions of SnpEff Show documentation
Variant annotation and effect prediction package.
The newest version!
package org.snpeff.util;
import java.util.Iterator;
/**
* Convert an iterator instance to a (fake) iterable
*
* @author pablocingolani
* @param
*/
public class Iterator2Iterable implements Iterable {
Iterator iterator;
public Iterator2Iterable(Iterator iterator) {
this.iterator = iterator;
}
@Override
public Iterator iterator() {
return iterator;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy