blackboard.base
Class BbList.Iterator

java.lang.Object
  extended by blackboard.base.FilteringIterator
      extended by blackboard.base.BbList.Iterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
BbList

public final class BbList.Iterator
extends FilteringIterator

A custom extension of FilteringIterator that can be retrieved from any BbList object using BbList.getFilteringIterator() or BbList.getFilteringIterator(ListFilter). This iterator and the methods in BbList to retrieve it, are convenience methods provided to more easily allow filtering on a list of objects.


Constructor Summary
protected BbList.Iterator(java.util.Iterator itr, ListFilter filter)
          Constructor
 
Method Summary
 java.lang.Object next()
          Returns the next element in the list.
 
Methods inherited from class blackboard.base.FilteringIterator
addFilter, filterByAvailability, hasNext, nextObject, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BbList.Iterator

protected BbList.Iterator(java.util.Iterator itr,
                          ListFilter filter)
Constructor

Method Detail

next

public java.lang.Object next()
Returns the next element in the list. This method may be called repeatedly to iterate through the list.

Specified by:
next in interface java.util.Iterator
Overrides:
next in class FilteringIterator
Returns:
the next element in the list.


Copyright © 2003 Blackboard, Inc. All Rights Reserved.