Class FilteredIterable<T>
- java.lang.Object
-
- jetbrains.buildServer.util.filters.FilteredIterable<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
public class FilteredIterable<T> extends java.lang.Object implements java.lang.Iterable<T>
Wraps any Iterable and allows filtered retrieval of its content according to the filter provided.
Example:
List
stringList;
...
for(String s: new FilteredIterable(stringList, someFilter))
{
// iterating through all elements that passes filtration implemented in someFilter
}
- Author:
- Sergey.Anchipolevsky Date: 20.08.2007
-
-
Constructor Summary
Constructors Constructor Description FilteredIterable(java.lang.Iterable<T> delegate, Filter<? super T> filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<T>
iterator()
-