com.mysema.query.util
Class LimitingIterator<E>

java.lang.Object
  extended by com.mysema.query.util.LimitingIterator<E>
All Implemented Interfaces:
Iterator<E>

public class LimitingIterator<E>
extends Object
implements Iterator<E>

LimitingIterator is and Iterator adapter which takes limit and offset into account

Author:
tiwe

Method Summary
static
<T> Iterator<T>
create(Iterator<T> iterator, QueryModifiers modifiers)
           
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static <T> Iterator<T> create(Iterator<T> iterator,
                                     QueryModifiers modifiers)

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<E>

next

public E next()
Specified by:
next in interface Iterator<E>

remove

public void remove()
Specified by:
remove in interface Iterator<E>


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.