mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 12:19:00 +00:00
76 lines
3.3 KiB
Java
76 lines
3.3 KiB
Java
import java.util.List;
|
|
public abstract @lombok.SuperBuilder class SuperBuilderJavadoc {
|
|
public static abstract class SuperBuilderJavadocBuilder<C extends SuperBuilderJavadoc, B extends SuperBuilderJavadocBuilder<C, B>> {
|
|
private @java.lang.SuppressWarnings("all") @lombok.Generated int basic;
|
|
private @java.lang.SuppressWarnings("all") @lombok.Generated int getsetwith;
|
|
private @java.lang.SuppressWarnings("all") @lombok.Generated int predef;
|
|
private @java.lang.SuppressWarnings("all") @lombok.Generated int predefWithJavadoc;
|
|
public SuperBuilderJavadocBuilder() {
|
|
super();
|
|
}
|
|
public B predef(final int x) {
|
|
this.predef = (x * 10);
|
|
return self();
|
|
}
|
|
public B predefWithJavadoc(final int x) {
|
|
this.predefWithJavadoc = (x * 100);
|
|
return self();
|
|
}
|
|
/**
|
|
* basic gets only a builder setter.
|
|
* @see #getsetwith
|
|
* @param tag is moved to the setter.
|
|
* @return {@code this}.
|
|
*/
|
|
public @java.lang.SuppressWarnings("all") @lombok.Generated B basic(final int basic) {
|
|
this.basic = basic;
|
|
return self();
|
|
}
|
|
/**
|
|
* getsetwith gets a builder setter, an instance getter and setter, and a wither.
|
|
* @param tag is moved to the setters and wither.
|
|
* @return {@code this}.
|
|
*/
|
|
public @java.lang.SuppressWarnings("all") @lombok.Generated B getsetwith(final int getsetwith) {
|
|
this.getsetwith = getsetwith;
|
|
return self();
|
|
}
|
|
protected abstract @java.lang.SuppressWarnings("all") @lombok.Generated B self();
|
|
public abstract @java.lang.SuppressWarnings("all") @lombok.Generated C build();
|
|
public @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated java.lang.String toString() {
|
|
return (((((((("SuperBuilderJavadoc.SuperBuilderJavadocBuilder(basic=" + this.basic) + ", getsetwith=") + this.getsetwith) + ", predef=") + this.predef) + ", predefWithJavadoc=") + this.predefWithJavadoc) + ")");
|
|
}
|
|
}
|
|
private final int basic;
|
|
private @lombok.Getter @lombok.Setter @lombok.experimental.Wither int getsetwith;
|
|
private final int predef;
|
|
private final int predefWithJavadoc;
|
|
protected @java.lang.SuppressWarnings("all") @lombok.Generated SuperBuilderJavadoc(final SuperBuilderJavadoc.SuperBuilderJavadocBuilder<?, ?> b) {
|
|
super();
|
|
this.basic = b.basic;
|
|
this.getsetwith = b.getsetwith;
|
|
this.predef = b.predef;
|
|
this.predefWithJavadoc = b.predefWithJavadoc;
|
|
}
|
|
/**
|
|
* getsetwith gets a builder setter, an instance getter and setter, and a wither.
|
|
* @return tag is moved to the getter.
|
|
*/
|
|
public @java.lang.SuppressWarnings("all") @lombok.Generated int getGetsetwith() {
|
|
return this.getsetwith;
|
|
}
|
|
/**
|
|
* getsetwith gets a builder setter, an instance getter and setter, and a wither.
|
|
* @param tag is moved to the setters and wither.
|
|
*/
|
|
public @java.lang.SuppressWarnings("all") @lombok.Generated void setGetsetwith(final int getsetwith) {
|
|
this.getsetwith = getsetwith;
|
|
}
|
|
/**
|
|
* getsetwith gets a builder setter, an instance getter and setter, and a wither.
|
|
* @param tag is moved to the setters and wither.
|
|
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
|
|
*/
|
|
public abstract @java.lang.SuppressWarnings("all") @lombok.Generated SuperBuilderJavadoc withGetsetwith(final int getsetwith);
|
|
}
|