The Frontier logo The Frontier logo
Josh Skeen

SAM Type Conversion in Kotlin

Josh Skeen | Nov 09, 2017

How to Write Cleaner Code with Kotlin SAM Conversions?

SAM Type conversion allows interfaces which require an implementation of a single method to accept either an anonymous class or a lambda. In this video we will recap on SAM Types, see how they work in Kotlin to support Java interoperability, and we'll also see some of the "gotchas" involved with the feature.

Supported Links:

SAM Conversions

Kotlin Programming by Big Nerd Ranch