com.gitee.apanlh.util.func.FuncIteratorKBreak Maven / Gradle / Ivy
package com.gitee.apanlh.util.func;
import java.util.Iterator;
/**
* 迭代器Key
* @author Pan
*/
@FunctionalInterface
public interface FuncIteratorKBreak {
/**
* 返回Key
*
* @author Pan
* @param key getKey()
* @param iterator 迭代器
* @return boolean true则继续 false则终止
*/
boolean next(K key, Iterator iterator);
}