1
2
3
4
5
6
7
8
9
10
11
12
13
| package org.sxkj.common.func;
|
| import java.util.function.Supplier;
|
| @FunctionalInterface
| public interface TupleSupplier<T, T1, T2> {
|
| T get(T1 t1, T2 t2);
|
| default Supplier<T> toSupplier(T1 t1, T2 t2) {
| return () -> get(t1, t2);
| }
| }
|
|