Immutables @Value.Immutable public final fields (instead of getters)

370 Views Asked by At

I code in Kotlin mostly, but I also work on a project written in Java

I would like to use the Immutables library to avoid writing boilerplate code

I'm used to accessing my data class fields without any getters (e.g. config.value instead of config.getValue())

I cannot figure out how to do that with the immutables library. It keeps making private final fields

Is there a way to enable generating public final fields?

0

There are 0 best solutions below