mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 04:15:06 +00:00
21 lines
558 B
Java
21 lines
558 B
Java
import lombok.experimental.WithBy;
|
|
public class WithByInAnonymousClass {
|
|
Object annonymous = new Object() {
|
|
@WithBy class Inner {
|
|
private String string;
|
|
private Inner(String string) {
|
|
super();
|
|
}
|
|
public @java.lang.SuppressWarnings("all") @lombok.Generated Inner withStringBy(final java.util.function.Function<? super String, ? extends String> transformer) {
|
|
return new Inner(transformer.apply(this.string));
|
|
}
|
|
}
|
|
x() {
|
|
super();
|
|
}
|
|
};
|
|
public WithByInAnonymousClass() {
|
|
super();
|
|
}
|
|
}
|