oday
11/13/2018, 2:36 PMAndreas Sinz
11/13/2018, 4:26 PModay
11/13/2018, 4:43 PModay
11/13/2018, 5:05 PModay
11/13/2018, 5:05 PModay
11/13/2018, 5:06 PModay
11/13/2018, 5:06 PModay
11/13/2018, 5:07 PMAndreas Sinz
11/13/2018, 5:21 PMmpProperties
oday
11/13/2018, 5:24 PModay
11/13/2018, 5:24 PModay
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
gildor
11/14/2018, 2:01 AMgildor
11/14/2018, 2:02 AMmpProperties
or even writing some dsl like:
mpProperties.putAll {
"car_id" to listing.id
}
oday
11/14/2018, 12:18 PModay
11/14/2018, 12:18 PModay
11/14/2018, 12:19 PModay
11/17/2018, 3:53 PMvar1.javaClass.getFieldByName(String)
is what im using right now but im not sure what to feed getFieldByName
oday
11/17/2018, 3:53 PMgildor
11/18/2018, 5:27 AMgildor
11/18/2018, 5:28 AM