|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.collections.FilteredIterator<E>
umontreal.iro.lecuyer.collections.FilteredListIterator<E>
umontreal.iro.lecuyer.collections.ObjectTypeListIterator<E>
E
- the type of the objects.public class ObjectTypeListIterator<E>
Represents a list iterator traversing objects of a particular class enumerated by another iterator.
Constructor Summary | |
---|---|
ObjectTypeListIterator(ListIterator<? super E> it,
Class<E> objectClass)
Constructs a new iterator traversing objects of class objectClass enumerated by the inner iterator it. |
|
ObjectTypeListIterator(ListIterator<? super E> it,
Class<E> objectClass,
int maxNumElements)
Constructs a new iterator traversing at most maxNumElements objects of class objectClass enumerated by the inner iterator it. |
Method Summary | |
---|---|
boolean |
filter(Object o)
Determines if the object o is returned by this iterator. |
Class<E> |
getObjectClass()
Returns the class of the objects returned by this iterator. |
Methods inherited from class umontreal.iro.lecuyer.collections.FilteredListIterator |
---|
add, getInnerIterator, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set |
Methods inherited from class umontreal.iro.lecuyer.collections.FilteredIterator |
---|
getMaxNumElements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectTypeListIterator(ListIterator<? super E> it, Class<E> objectClass)
it
- the inner iterator.objectClass
- the object class.
NullPointerException
- if it or
objectClass are null.public ObjectTypeListIterator(ListIterator<? super E> it, Class<E> objectClass, int maxNumElements)
it
- the inner iterator.objectClass
- the object class.maxNumElements
- the maximal nuber of traverd objects.
NullPointerException
- if it or
objectClass are null.
IllegalArgumentException
- if maxNumElements
is negative.Method Detail |
---|
public Class<E> getObjectClass()
public boolean filter(Object o)
FilteredIterator
filter
in class FilteredIterator<E>
o
- the tested object.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |