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

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

public abstract class FilteredSingleBatchIterator<E>
extends FilteredBatchIterator<E>


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.util.batch.FilteredBatchIterator
elements
 
Constructor Summary
FilteredSingleBatchIterator(java.util.Iterator<java.util.List<E>> delegate, int batchSize)
           
 
Method Summary
abstract  boolean apply(E e)
           
protected  void filterBatch(java.util.List<E> batch)
           
 
Methods inherited from class com.atlassian.greenhopper.util.batch.FilteredBatchIterator
hasNext, iterator, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredSingleBatchIterator

public FilteredSingleBatchIterator(java.util.Iterator<java.util.List<E>> delegate,
                                   int batchSize)
Method Detail

filterBatch

protected void filterBatch(java.util.List<E> batch)
Specified by:
filterBatch in class FilteredBatchIterator<E>

apply

public abstract boolean apply(E e)


Copyright © 2007-2014 Atlassian. All Rights Reserved.