mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
21 lines
354 B
Java
21 lines
354 B
Java
class AnonymousTest {
|
|
interface Thing {
|
|
boolean thing();
|
|
}
|
|
|
|
void dupeHolder() {
|
|
Thing thing = new Thing() {
|
|
public boolean thing() {
|
|
return false;
|
|
}
|
|
};
|
|
}
|
|
|
|
Thing <caret>duplicator(final boolean thingReturn) {
|
|
return new Thing() {
|
|
public boolean thing() {
|
|
return thingReturn;
|
|
}
|
|
};
|
|
}
|
|
} |