All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.moe.tlaster.precompose.navigation.RouteGraph.kt Maven / Gradle / Ivy

Go to download

A third-party Jetbrains Compose library with ViewModel, LiveData and Navigation support.

There is a newer version: 1.7.0-alpha03
Show newest version
package moe.tlaster.precompose.navigation

import moe.tlaster.precompose.navigation.route.Route

internal data class RouteGraph(
    val initialRoute: String,
    val routes: List,
) {
    override fun equals(other: Any?): Boolean {
        if (other !is RouteGraph) {
            return false
        }
        return initialRoute == other.initialRoute && routes.size == other.routes.size && routes.map { it.route }
            .containsAll(other.routes.map { it.route })
    }

    override fun hashCode(): Int {
        var result = initialRoute.hashCode()
        result = 31 * result + routes.hashCode()
        return result
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy