org.pf.bif.callback
Interface IObjectCollector


public interface IObjectCollector

Implementors will be called by for elements in a loop or a recursive processing. They can be used to add the processed objects to a given collection.

Version:
1.0
Author:
M.Duchrow

Method Summary
 boolean collectObject(java.util.Collection collection, java.lang.Object object)
          Will be called with an object that maybe must be added to the given collection.
 

Method Detail

collectObject

boolean collectObject(java.util.Collection collection,
                      java.lang.Object object)
Will be called with an object that maybe must be added to the given collection. The decision i s up to the implementor. The implementor actually must do the adding too.

Parameters:
collection - The collection to add objects (must not be null)
object - The object to be potentially added (must not be null)
Returns:
true to continue the processing, false to stop the processing