mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
25 lines
406 B
Java
25 lines
406 B
Java
// "Replace with lambda" "true-preview"
|
|
class DbTableBinder {
|
|
|
|
public Binder build() {
|
|
return new Bin<caret>der<DbTable>() {
|
|
public void bind(A q, DbTable 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);
|
|
}
|
|
|