com.gitee.apanlh.util.func.FuncLoopIndex Maven / Gradle / Ivy
package com.gitee.apanlh.util.func;
/**
* 循环遍历函数
*
增加返回当前索引
*
* @author Pan
*/
@FunctionalInterface
public interface FuncLoopIndex {
/**
* 返回对象
*
* @author Pan
* @param t 对象
* @param index 返回当前索引
* @return true停止循环
*/
boolean get(T t, int index);
}