https://kotlinlang.org logo
k

kevinmost

07/20/2016, 11:36 PM
@supaham: I have something implemented for that in my Kotlin toolbelt lib. The implementation was largely written by someone else who is credited in the comments in that file. Feel free to use the library or just copy/paste the class to your own project, of course: https://github.com/kevinmost/koolbelt/blob/master/core/src/main/java/com/kevinmost/koolbelt/util/SelfReference.kt