Interface PerceptionCollectable.PerceptionFinalizer<C,​I>

  • Type Parameters:
    C - collection result type
    I - intermediate result type
    Enclosing interface:
    PerceptionCollectable<H extends Headway,​U>

    public static interface PerceptionCollectable.PerceptionFinalizer<C,​I>
    Translates the last intermediate result of an accumulator in to the collection output.

    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 28 feb. 2018
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Detail

      • collect

        C collect​(I intermediate)
        Translate the last intermediate result in to a final result.
        Parameters:
        intermediate - I; last intermediate result
        Returns:
        C; final result