Bimba.git

ref: 1913a6e05f9bade3a0e4fb9d527dd88e6dbff7c8

app/src/main/java/ml/adamsprogs/bimba/models/gtfs/AgencyAndId.kt


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
package ml.adamsprogs.bimba.models.gtfs

import java.io.Serializable

data class AgencyAndId(val id: String) : Serializable, Comparable<AgencyAndId> {
    override fun compareTo(other: AgencyAndId): Int {
        return this.toString().compareTo(other.toString())
    }

    companion object {
        fun convertFromString(str: String): AgencyAndId {
            return AgencyAndId(str)
        }
    }

    override fun toString(): String {
        return id
    }
}