2019 | OriginalPaper | Chapter
13. About Type Safety: Generics
Published in:
Learn Kotlin for Android Development
Abstract
Generics is a term used for denoting a set of language features that allow us to add type parameters to types. Consider, for example, a simple class with a function for adding elements in the form of Int objects:
class AdderInt {
fun add(i:Int) {
…
}
}