mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
41 lines
659 B
Java
Vendored
41 lines
659 B
Java
Vendored
import org.jetbrains.annotations.NotNull;
|
|
|
|
class Container {
|
|
@NotNull
|
|
Value get(Runnable i) {
|
|
i.run();
|
|
return new Value();
|
|
}
|
|
|
|
void set(Runnable i, @NotNull Value value) {
|
|
i.run();
|
|
}
|
|
}
|
|
|
|
class Value {
|
|
@NotNull Value plus(Runnable i) {
|
|
i.run();
|
|
return this;
|
|
}
|
|
|
|
@NotNull Value minus(Runnable i) {
|
|
i.run();
|
|
return this;
|
|
}
|
|
|
|
@NotNull Value times(Runnable i) {
|
|
i.run();
|
|
return this;
|
|
}
|
|
|
|
@NotNull Value div(Runnable i) {
|
|
i.run();
|
|
return this;
|
|
}
|
|
|
|
@NotNull Value mod(Runnable i) {
|
|
i.run();
|
|
return this;
|
|
}
|
|
}
|