public interface ObjIntConsumer
| java.util.function.ObjIntConsumer<T> |
表示接受对象值和int参数的操作,并且不返回任何结果。 这是(reference, int)的专业化BiConsumer 。 与大多数其他功能接口不同, ObjIntConsumer预计将通过副作用进行操作。
这是一个 functional interface,其功能方法是 accept(Object, int) 。
也可以看看:
公共方法(Public methods) |
|
|---|---|
abstract void |
accept(T t, int value) 对给定的参数执行此操作。 |
void accept (T t,
int value)
对给定的参数执行此操作。
| 参数(Parameters) | |
|---|---|
t |
T: the first input argument |
value |
int: the second input argument |