Interface PerceptionCollectable.PerceptionAccumulator<U,I>
- Type Parameters:
U- underlying object typeI- intermediate result type
- Enclosing interface:
- PerceptionCollectable<P extends PerceivedObject,
U>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Accumulates an object one at a time in to an accumulating intermediate result.
-
Method Summary
Modifier and TypeMethodDescriptionaccumulate(PerceptionCollectable.Intermediate<I> intermediate, U object, Length distance) Accumulate the next object to intermediate result.
-
Method Details
-
accumulate
PerceptionCollectable.Intermediate<I> accumulate(PerceptionCollectable.Intermediate<I> intermediate, U object, Length distance) Accumulate the next object to intermediate result.- Parameters:
intermediate- intermediate result before accumulation of objectobject- next object to includedistance- distance to the considered object- Returns:
- intermediate result after accumulation of object
-