Interface KeyExtractorFunction<T>

  • Type Parameters:
    T - type of the element from which we extract the key.
    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 KeyExtractorFunction<T>
    Function to extract a key from a given object.
    • Method Detail

      • extractKeyFromElement

        @Nonnull
        Object extractKeyFromElement​(@Nonnull
                                     T element)
        Returns the key for the given element by which the key-group can be computed.