mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 10:23:55 +00:00
13 lines
255 B
Java
13 lines
255 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;
|
|
}
|
|
}
|