open class LottieUrlKey(url: String) :ILottieKey{private var resultKey:String = ""companion object{const val KEY_PREFIX = "url_"}init {resultKey = KEY_PREFIX + url}override fun getKey(): String {return resultKey;}}
子类
class DoubleClickLottieKey extends LottieUrlKey {super("http://baidu.com")}
类似的java代码使用kotlin如何实现呢
class DoubleClickLottieKey : LottieUrlKey {constructor(url: String) : super(url)}
