Move model interfaces code from Java to Kotlin

This commit is contained in:
Lucas Smaira
2018-07-30 12:18:04 +01:00
committed by Sergey Igushkin
parent 52990c9eb1
commit 49292cd26c
21 changed files with 130 additions and 359 deletions
@@ -12,26 +12,12 @@ import java.io.Serializable
* Implementation of the [SamWithReceiver] interface.
*/
data class SamWithReceiverImpl(
private val myName: String,
private val myAnnotations: List<String>,
private val myPresets: List<String>
override val name: String,
override val annotations: List<String>,
override val presets: List<String>
) : SamWithReceiver, Serializable {
override fun getModelVersion(): Long {
return serialVersionUID
}
override fun getName(): String {
return myName
}
override fun getAnnotations(): List<String> {
return myAnnotations
}
override fun getPresets(): List<String> {
return myPresets
}
override val modelVersion = serialVersionUID
companion object {
private const val serialVersionUID = 1L