Interface ContainerDataCollector<C,P,R>

Type Parameters:
C - The type of the container from which data is collected.
P - The type of the target in the source from which data is collected.
R - The type of the data returned after collection.
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 interface ContainerDataCollector<C,P,R>
Functional interface for collecting data from a container.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(C container, P target)
    Applies this function to the given arguments.
  • Method Details

    • apply

      R apply(C container, P target)
      Applies this function to the given arguments.
      Parameters:
      container - The container from which data is collected.
      target - The target in the source from which data is collected.
      Returns:
      The data collected from the container.