T - The type of the first object to be consumed.V - The type of the second object to be consumed.@FunctionalInterface public interface ObjectIntObjectConsumer<T,V>
Example Usage:
ObjectIntObjectConsumer<String, Double> printer = (str, num, dbl) ->
System.out.println(str + " - " + num + " - " + dbl);
printer.accept("Value", 5, 20.5);
The above will print: Value - 5 - 20.5| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t,
int u,
V v)
Performs the operation defined by this consumer.
|
Copyright © 2024. All rights reserved.