oday
11/13/2018, 2:36 PMAndreas Sinz
11/13/2018, 4:26 PModay
11/13/2018, 4:43 PMAndreas Sinz
11/13/2018, 5:21 PMmpProperties
oday
11/13/2018, 5:24 PMAndreas Sinz
11/13/2018, 5:58 PMwith(mpProperties) { ... }
gildor
11/14/2018, 2:01 AMFor example is there a way that I can look for an object’s properties and find a property by a string?Only using reflection or code generation. Also kotlin.serialization can do this for you
mpProperties
or even writing some dsl like:
mpProperties.putAll {
"car_id" to listing.id
}
oday
11/14/2018, 12:18 PMvar1.javaClass.getFieldByName(String)
is what im using right now but im not sure what to feed getFieldByName
gildor
11/18/2018, 5:27 AM