Interface Pair.PairWithOrdinalConsumer<K,V>

Type Parameters:
K - Key type
V - Value type
Enclosing class:
Pair<T1 extends @Nullable Object,T2 extends @Nullable Object>
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 Pair.PairWithOrdinalConsumer<K,V>
Represents an operation that accepts two input arguments and an ordinal, and returns no result.

This is a specialization of Consumer, similar to BiConsumer.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(int ordinal, K k, V v)
    Performs this operation on the given arguments.
  • Method Details

    • accept

      void accept(int ordinal, K k, V v)
      Performs this operation on the given arguments.
      Parameters:
      ordinal - Ordinal
      k - the first input argument
      v - the second input argument