카테고리 없음

java, of (lombok @Data)

een 2021. 8. 31. 17:42

 you can create new instances of Foo by writing: Foo.of(5); instead of having to write: new Foo<Integer>(5);.

(https://projectlombok.org/features/Data)