borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

FilteredForwardIterator class (abstract)

java.lang.Object
   +----borland.jbcl.model.FilteredForwardIterator

About the FilteredForwardIterator class

Constructors  Properties  Methods  

Implements ForwardIterator, InputIterator, OutputIterator, Cloneable, Enumeration

The FilteredForwardIterator class is an abstract class that iterates over selected data items only. It is a forward iterator, which is an object that can read and write one item at a time. Subclass FilteredForwardIterator to filter elements during a forward iteration.


FilteredForwardIterator constructors

FilteredForwardIterator properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

FilteredForwardIterator methods

Methods implemented in this class

Methods implemented in java.lang.Object


FilteredForwardIterator constructors

FilteredForwardIterator(COM.objectspace.jgl.ForwardIterator)

  public FilteredForwardIterator(COM.objectspace.jgl.ForwardIterator slave)
Constructs a FilteredForwardIterator object using the specified forward iterator.

Parameters:

slave
An forward iterator object used for filtering

FilteredForwardIterator properties

next

 public Object getNext()
Returns the next Object in the iteration.

FilteredForwardIterator methods

equals(borland.jbcl.model.FilteredForwardIterator)

  public boolean equals(borland.jbcl.model.FilteredForwardIterator that)
Returns true if the specified input iterator is equal to the FilteredInputIterator.

Parameters:

that
The forward iterator this object is compared to.

getNextMatching()

  protected Object getNextMatching()
Returns the next matching object.

includeObject(java.lang.Object)

  protected abstract boolean includeObject(java.lang.Object o)
Used by the getNextMatching() method. If includeObject() returns true, getNextMatching() includes the object in the iteration.