Join Slack
Powered by
I'd say: If you have to use the class from Java a ...
# getting-started
j
jschneider
07/05/2017, 5:52 PM
I'd say: If you have to use the class from Java a builder seems to be the best idea...
➕ 1
n
nayanjyoti
07/05/2017, 6:12 PM
jschneider: I was hoping something similar to
@JvmBuilder
available
j
jschneider
07/06/2017, 6:17 AM
https://discuss.kotlinlang.org/t/generate-java-style-builders-for-interop/2422
jschneider
07/06/2017, 6:19 AM
So you are not the first one to ask that question. I a can feel your pain, too.
😞 1
g
gjesse
07/06/2017, 1:47 PM
the
https://immutables.github.io/
project might help you. i don’t know if it works in kotlin but you could just write your class in java using that..
3
Views
Open in Slack
Previous
Next