org.onebusaway.utility.filter
Class FilteredIterable<T>
java.lang.Object
org.onebusaway.utility.filter.FilteredIterable<T>
- All Implemented Interfaces:
- Iterable<T>
public class FilteredIterable<T>
- extends Object
- implements Iterable<T>
An iterable adapter that selectively filters a source Iterable
given
a IFilter
to apply.
- Author:
- bdferris
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilteredIterable
public FilteredIterable(Iterable<T> source,
IFilter<T> filter)
filter
public static <T> Iterable<T> filter(Iterable<T> source,
IFilter<T> filter)
iterator
public Iterator<T> iterator()
- Specified by:
iterator
in interface Iterable<T>
Copyright © 2012 OneBusAway. All Rights Reserved.