INNER CODE UNIT · Kotlin

cachedHashCode

kosi-libs/Kodein · kodein-di/src/commonMain/kotlin/org/kodein/di/DI.kt:104

                cachedHashCode = 23 * cachedHashCode + (tag?.hashCode() ?: 0)
            }
            return cachedHashCode
        }

        /**
         * @return The [description]
         */
        override fun toString(): String = description

        /**
         * Right part of the description string.
         *
         * @param displayString a function that gets the display string for a type.
         */
        private fun StringBuilder.appendDescription(displayString: TypeToken<*>.() -> String) {
            if (tag != null) {
                append(""" tagged "$tag"""")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…