2021-10-14 19:25:25 +02:00
|
|
|
package org.moire.ultrasonic.domain
|
|
|
|
|
|
|
|
import androidx.room.Ignore
|
|
|
|
|
2021-10-19 21:02:51 +02:00
|
|
|
abstract class GenericEntry : Identifiable {
|
|
|
|
abstract override val id: String
|
2021-10-14 19:25:25 +02:00
|
|
|
@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
|
|
|
|
}
|