17 lines
390 B
Kotlin
17 lines
390 B
Kotlin
package org.moire.ultrasonic.domain
|
|
|
|
import androidx.room.Ignore
|
|
|
|
abstract class GenericEntry : Identifiable {
|
|
abstract override val id: String
|
|
@Ignore
|
|
open val name: String? = null
|
|
override fun compareTo(other: Identifiable): Int {
|
|
return this.id.toInt().compareTo(other.id.toInt())
|
|
}
|
|
}
|
|
|
|
interface Identifiable : Comparable<Identifiable> {
|
|
val id: String
|
|
}
|