https://kotlinlang.org logo
p

pokkeli

05/02/2018, 8:25 AM
Hmm. I have a simple "data" class, that will have some number of float vars. I want to clamp all of them to range 0f - 100f. I could override their setters but is there an easier way?