Interface CollKit.KVConsumer<K,V>

Type Parameters:
K - key类型
V - valueE类型
Enclosing class:
CollKit

public static interface CollKit.KVConsumer<K,V>
针对两个参数做相应的操作,例如Map中的KEY和VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(K key, V value, int index)
    接受并处理一对参数
  • Method Details

    • accept

      void accept(K key, V value, int index)
      接受并处理一对参数
      Parameters:
      key - 键
      value - 值
      index - 参数在集合中的索引