Interface MergeFunction<K,​V>

  • Type Parameters:
    K - - the type of the keys
    V - - the type of the values
    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 MergeFunction<K,​V>
    Represents a merge function.
    Since:
    6.7
    • Method Detail

      • apply

        V apply​(K key,
                V oldValue,
                V value)
        Applies this mapping function to the given arguments.
        Parameters:
        key - the key
        oldValue - the old value
        value - the value
        Returns:
        the new value