com.atlassian.greenhopper.util.batch
Class DirectBatchIterator<E>

java.lang.Object
  extended by com.atlassian.greenhopper.util.batch.DirectBatchIterator<E>
All Implemented Interfaces:
BatchIterator<E>, java.lang.Iterable<java.util.List<E>>, java.util.Iterator<java.util.List<E>>

public class DirectBatchIterator<E>
extends java.lang.Object
implements BatchIterator<E>


Constructor Summary
DirectBatchIterator(java.lang.Iterable<E> delegateIterable, int batchSize)
           
DirectBatchIterator(java.util.Iterator<E> delegateIterator, int batchSize)
           
 
Method Summary
 boolean hasNext()
           
 java.util.Iterator<java.util.List<E>> iterator()
           
 java.util.List<E> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectBatchIterator

public DirectBatchIterator(java.lang.Iterable<E> delegateIterable,
                           int batchSize)

DirectBatchIterator

public DirectBatchIterator(java.util.Iterator<E> delegateIterator,
                           int batchSize)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<java.util.List<E>>

next

public java.util.List<E> next()
Specified by:
next in interface java.util.Iterator<java.util.List<E>>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<java.util.List<E>>

iterator

public java.util.Iterator<java.util.List<E>> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.util.List<E>>


Copyright © 2007-2014 Atlassian. All Rights Reserved.