Class FilteredIterable<T extends Headway>
- java.lang.Object
-
- org.opentrafficsim.road.gtu.lane.perception.FilteredIterable<T>
-
- Type Parameters:
T
- type
- All Implemented Interfaces:
Iterable<T>
public class FilteredIterable<T extends Headway> extends Object implements Iterable<T>
Returns only those elements that comply with the predicate.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version May 12, 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description FilteredIterable(Iterable<T> iterable, Predicate<T> predicate)
-
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
-
-