Package jetbrains.buildServer.util
Interface ItemProcessor<T>
-
public interface ItemProcessor<T>
An implementation of this class can be used for processing big collections (e.g. SQL query results) when all the items cannot fit into memory.- Author:
- Sergey.Anchipolevsky Date: 02.10.2007
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
processItem(T item)
Processes a single item.
-
-
-
Method Detail
-
processItem
boolean processItem(T item)
Processes a single item.- Parameters:
item
- the item to be processed. Potentially can be null if the underlying collection may have null elements.- Returns:
- false if no further processing needed. This commands the collection processing algorithm to stop iterations. True otherwise.
-
-