org.eclipse.net4j.util.collection
Class LimitedIterator<T>
java.lang.Object
org.eclipse.net4j.util.collection.AbstractIterator<T>
org.eclipse.net4j.util.collection.AbstractFilteredIterator<T>
org.eclipse.net4j.util.collection.LimitedIterator<T>
- All Implemented Interfaces:
- Iterator<T>
- public class LimitedIterator<T>
- extends AbstractFilteredIterator<T>
- Since:
- 3.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LimitedIterator
public LimitedIterator(Iterator<T> delegate,
int limit)
getLimit
public final int getLimit()
getCount
public final int getCount()
isValid
protected boolean isValid(T element)
- Specified by:
isValid
in class AbstractFilteredIterator<T>
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.