jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1531352 - /jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/iterator/RepeatApplyIterator.java
Date Fri, 11 Oct 2013 16:54:52 GMT
Author: andy
Date: Fri Oct 11 16:54:52 2013
New Revision: 1531352

URL: http://svn.apache.org/r1531352
Log:
Add operation to note end of iterator.

Modified:
    jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/iterator/RepeatApplyIterator.java

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/iterator/RepeatApplyIterator.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/iterator/RepeatApplyIterator.java?rev=1531352&r1=1531351&r2=1531352&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/iterator/RepeatApplyIterator.java
(original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/iterator/RepeatApplyIterator.java
Fri Oct 11 16:54:52 2013
@@ -51,6 +51,7 @@ public abstract class RepeatApplyIterato
             
             if ( currentStage == null  )
             {
+                hasFinished() ;
                 finished = true ;
                 return false ;
             }
@@ -64,6 +65,8 @@ public abstract class RepeatApplyIterato
 
     protected abstract Iterator<T> makeNextStage(T t) ;
     
+    protected void hasFinished() {} 
+    
     @Override
     public T next()
     {



Mime
View raw message