mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
20 lines
379 B
Java
20 lines
379 B
Java
class UseBuilder {
|
|
void test(Builder builder, int[] arr) {
|
|
newMethod(builder, arr[0]);
|
|
}
|
|
|
|
private void newMethod(Builder builder, int x) {
|
|
builder.foo("xyz").bar(x).foo("abc");
|
|
}
|
|
|
|
static class Builder {
|
|
Builder foo(String s) {
|
|
return this;
|
|
}
|
|
|
|
Builder bar(int x) {
|
|
return this;
|
|
}
|
|
}
|
|
}
|