From 3949b4ac722bbbf14969946f6e5bae25db1f34aa Mon Sep 17 00:00:00 2001 From: depristo Date: Sat, 12 Sep 2009 19:09:21 +0000 Subject: [PATCH] commented out version of next() and hasNext() that appear to be correct but are causing testing problems git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1596 348d0f76-0448-11de-a6fe-93d51630548a --- .../sting/gatk/refdata/RODIterator.java | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/java/src/org/broadinstitute/sting/gatk/refdata/RODIterator.java b/java/src/org/broadinstitute/sting/gatk/refdata/RODIterator.java index 73c7b78a9..f689076af 100755 --- a/java/src/org/broadinstitute/sting/gatk/refdata/RODIterator.java +++ b/java/src/org/broadinstitute/sting/gatk/refdata/RODIterator.java @@ -30,7 +30,7 @@ public class RODIterator implements Iterator< @Override public boolean hasNext() { return it.hasNext(); } - + @Override public ROD next() { ROD next = it.next(); @@ -41,6 +41,26 @@ public class RODIterator implements Iterator< return next; } +// @Override +// public boolean hasNext() { return current != null || it.hasNext(); } +// +// @Override +// public ROD next() { +// if ( current != null ) { +// ROD prev = current; +// current = null; +// return prev; +// } else { +// ROD next = it.next(); +// if( next != null ) { +// position = next.getLocation().clone(); +// //current = next; +// } +// +// return next; +// } +// } + /** * Returns the current position of this iterator. * @return Current position of the iterator, or null if no position exists.