tipsy
03/22/2019, 7:50 PMclass Person {
public int age;
public String name;
}
and i want to turn it into a data class(val age: Int, val name: String)
. i know i could write something to convert it, but is there something built-in that can just freeze the object instead?Adam Kirk
03/22/2019, 7:54 PMtipsy
03/22/2019, 7:55 PMDominaezzz
03/22/2019, 7:56 PMtipsy
03/22/2019, 7:59 PMtipsy
03/22/2019, 7:59 PMgildor
03/23/2019, 1:48 AM