Kotlin Quick Start Guide : Core Features to Get You Ready for Developing Applications.
Kotlin is a general purpose, object-oriented language that primarily targets the JVM and Android. Intended to be a better alternative to Java, its main goals are high interoperability with Java and increased developer productivity. Kotlin is still a new language and this book will help you to learn...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing Ltd,
2018.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Dedication; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Introducing Kotlin; Compiling and running Kotlin; Kotlin's uses; Java interoperability; Build tools; Gradle; Maven; Setting up the development environment; Summary; Chapter 2: Kotlin Basics; Functions; Local variables; Local functions; Type inference; Basic types; Numbers; Boolean; Characters; Strings; Base type; Arrays; Nullable types; Casting; Safe casting; Control flow; if-else; When; Loops; For loops; While loops; Do-While loops; Exceptions; Equality comparison
- PackagesVisibility modifiers; Summary; Chapter 3: Classes and Object-Oriented Programming; Classes; Properties; Class constructors; Primary constructors; Secondary constructors; Final by default; Constructing class instances; Nested classes; Enum classes; Data classes; Inheritance; Overriding members; Abstract classes; Interfaces; Interfaces versus abstract classes; Object keyword; Singletons with object keyword; Companion objects; Static with companion objects; Anonymous objects; Class delegation; Sealed classes; Smart casts; Summary; Chapter 4: Functions and Lambdas; Advanced functions
- Named argumentsDefault parameters; Variable function arguments; Lambdas; Returning a value from a lambda; Passing lambdas as the only or last argument; Closures; Returning from lambdas; Function types; Defining function types; Calling function types; Naming parameters of function types; Calling function types from Java; Lambdas and SAM types; Member references; Inlining lambdas; noinline; crossinline; Summary; Chapter 5: Advanced Kotlin; Generics; Declaring generic types; Generic functions; Generic constraints; Type erasure and raw types; Reified generics; Concurrency constructs
- Starting a threadSynchronized methods; Synchronized blocks; Volatile; Delegated properties; Standard library delegate properties; lazy; observable; vetoable; notNull; Extension functions; Importing extension functions; Java interoperability; Extension properties; Receiver functions; Infix functions; Building a simple DSL; Operator overloading; Overloading with extension functions; Operator overloading and Java; Bitwise operations; Summary; Chapter 6: Kotlin Standard Library; Collections; Lists; Sets; Maps; Indexing; Platform types and immutable collections; Working with collections
- Filtering functionsDrop; Filter; FilterNot; Take; General functions; Any; All; Count; ForEach; Max; Min; Sum; Transforming functions; Map; FlatMap; GroupBy; AssociateBy; Items functions; Contains; First; FirstOrNull; Last; LastOrNull; Single; SingleOrNull; Sorting functions; Reversed; Sorted; SortedDescending; Kotlin standard library functions; Contracts; Check; CheckNotNull; Require; RequireNotNull; Error; Standard functions; Apply; Let; With; Use; Summary; Chapter 7: Coding a Dictionary App with Kotlin; Project setup; App features; Requirements; Creating the Kotlin-Gradle project