mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
21 lines
339 B
Java
21 lines
339 B
Java
// "Replace with lambda" "true-preview"
|
|
class DbTableBinder {
|
|
|
|
public Binder build() {
|
|
return (Binder<DbTable>) (q, dbTable) -> q.bind("name", dbTable.name);
|
|
}
|
|
}
|
|
|
|
class DbTable {
|
|
String name;
|
|
}
|
|
|
|
interface Binder <ArgType> {
|
|
void bind(A<?> sqlStatement, ArgType argType);
|
|
}
|
|
|
|
interface A<P> {
|
|
void bind(String s, String p);
|
|
}
|
|
|