mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-01 22:22:27 +00:00
37 lines
1.3 KiB
Java
37 lines
1.3 KiB
Java
import java.util.List;
|
|
@lombok.Builder class BuilderSimple<T> {
|
|
public static @java.lang.SuppressWarnings("all") class BuilderSimpleBuilder<T> {
|
|
private @java.lang.SuppressWarnings("all") int yes;
|
|
private @java.lang.SuppressWarnings("all") List<T> also;
|
|
@java.lang.SuppressWarnings("all") BuilderSimpleBuilder() {
|
|
super();
|
|
}
|
|
public @java.lang.SuppressWarnings("all") BuilderSimpleBuilder<T> yes(final int yes) {
|
|
this.yes = yes;
|
|
return this;
|
|
}
|
|
public @java.lang.SuppressWarnings("all") BuilderSimpleBuilder<T> also(final List<T> also) {
|
|
this.also = also;
|
|
return this;
|
|
}
|
|
public @java.lang.SuppressWarnings("all") BuilderSimple<T> build() {
|
|
return new BuilderSimple<T>(yes, also);
|
|
}
|
|
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
|
|
return (((("BuilderSimple.BuilderSimpleBuilder(yes=" + this.yes) + ", also=") + this.also) + ")");
|
|
}
|
|
}
|
|
private final int noshow = 0;
|
|
private final int yes;
|
|
private List<T> also;
|
|
private int $butNotMe;
|
|
@java.lang.SuppressWarnings("all") BuilderSimple(final int yes, final List<T> also) {
|
|
super();
|
|
this.yes = yes;
|
|
this.also = also;
|
|
}
|
|
public static @java.lang.SuppressWarnings("all") <T>BuilderSimpleBuilder<T> builder() {
|
|
return new BuilderSimpleBuilder<T>();
|
|
}
|
|
}
|