Interface PerceptionIterable<H extends Headway>
-
- Type Parameters:
H- headway type
- All Superinterfaces:
Iterable<H>
- All Known Subinterfaces:
PerceptionCollectable<H,U>
- All Known Implementing Classes:
AbstractPerceptionIterable,AbstractPerceptionReiterable,DownstreamNeighborsIterable,LaneBasedObjectIterable,MultiLanePerceptionIterable,PerceptionIterableSet,SortedSetPerceptionIterable,UpstreamNeighborsIterable
public interface PerceptionIterable<H extends Headway> extends Iterable<H>
Iterable set of elements, sorted close to far.Copyright (c) 2013-2020 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 16 feb. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Hfirst()Returns the first element.booleanisEmpty()Returns whether this iterable is empty.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
first
H first()
Returns the first element.- Returns:
- H; first element
-
isEmpty
boolean isEmpty()
Returns whether this iterable is empty.- Returns:
- whether this iterable is empty
-
-