3 ms·
For immutable objects you can use new ‘record’. Another option is to use Lombok which provides an elegant way for reducing code.
by the_arun 2y ago
For immutable objects you can use new ‘record’. Another option is to use Lombok which provides an elegant way for reducing code.