Class FilteredIterable<T>
- java.lang.Object
-
- jetbrains.buildServer.util.filters.FilteredIterable<T>
-
- All Implemented Interfaces:
Iterable<T>
public class FilteredIterable<T> extends Object implements 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(Iterable<T> delegate, Filter<? super T> filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<T>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-