https://kotlinlang.org logo
v

voddan

08/04/2016, 2:47 PM
the same algorithm should work for all your data classes. Implement it in one common super class (or interface) and reuse the logic