mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 12:22:31 +00:00
3f0fec1872
(chainable setters, static constructors, builder stuff)
12 lines
235 B
Java
12 lines
235 B
Java
import lombok.Value;
|
|
@Value(staticConstructor = "of")
|
|
public class ValueStaticConstructorOf {
|
|
String name;
|
|
Double price;
|
|
|
|
private ValueStaticConstructorOf(String name, Double price) {
|
|
this.name = name;
|
|
this.price = price;
|
|
}
|
|
}
|