Move model interfaces code from Java to Kotlin
This commit is contained in:
committed by
Sergey Igushkin
parent
52990c9eb1
commit
49292cd26c
+4
-18
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user