<@U092N7GGG>: I missed your above comment, but was...
# getting-started
c
@yole: I missed your above comment, but was just reading the upcoming Kotlin in Action book, and wound up using a reified type param, which seemed to do the trick. Seems nice and clean and even shorter on the calling side:
Copy code
inline fun <reified T : MyModelInterface> clear() = mapper.scan(T::class.java, ...)
db.clear<Device>()