Interface PerceptionCollectable.PerceptionAccumulator<U,I>

Type Parameters:
U - underlying object type
I - 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.

@FunctionalInterface public static interface PerceptionCollectable.PerceptionAccumulator<U,I>
Accumulates an object one at a time in to an accumulating 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 object
      object - next object to include
      distance - distance to the considered object
      Returns:
      intermediate result after accumulation of object