H
- headway typeU
- underlying object typepublic interface PerceptionCollectable<H extends Headway,U> extends PerceptionIterable<H>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Interface and Description |
---|---|
static class |
PerceptionCollectable.Intermediate<I>
Wrapper of intermediate result with info for the iterator algorithm.
|
static interface |
PerceptionCollectable.PerceptionAccumulator<U,I>
Accumulates an object one at a time in to an accumulating intermediate result.
|
static interface |
PerceptionCollectable.PerceptionCollector<C,U,I>
Combination of an accumulator and a finalizer.
|
static interface |
PerceptionCollectable.PerceptionFinalizer<C,I>
Translates the last intermediate result of an accumulator in to the collection output.
|
Modifier and Type | Method and Description |
---|---|
default <C,I> C |
collect(PerceptionCollectable.PerceptionCollector<C,? super U,I> collector)
Collect the underlying objects in to a perceived result.
|
<C,I> C |
collect(Supplier<I> identity,
PerceptionCollectable.PerceptionAccumulator<? super U,I> accumulator,
PerceptionCollectable.PerceptionFinalizer<C,I> finalizer)
Collect the underlying objects in to a perceived result.
|
first, isEmpty
forEach, iterator, spliterator
default <C,I> C collect(PerceptionCollectable.PerceptionCollector<C,? super U,I> collector)
C
- collection result typeI
- intermediate typecollector
- PerceptionCollector<C, ? super U, I>; collector<C,I> C collect(Supplier<I> identity, PerceptionCollectable.PerceptionAccumulator<? super U,I> accumulator, PerceptionCollectable.PerceptionFinalizer<C,I> finalizer)
C
- collection result typeI
- intermediate typeidentity
- Supplier<I>; the initial intermediate result valueaccumulator
- PerceptionAccumulator<? super U, I>; accumulatorfinalizer
- PerceptionFinalizer<C, I>; finalizerCopyright © 2014–2019 Delft University of Technology. All rights reserved.