Kotlin Programming Cookbook : Explore more than 100 recipes that show how to build robust mobile and web applications with Kotlin, Spring Boot, and Android.
The Android team has announced first-class support for Kotlin. This acts as an added boost to the language and more and more developers are now looking into Kotlin for their application development. This recipe based book will be your guide to get a firm hold on the Kotlin Programming language.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2018.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Installation and Working with Environment; Introduction; Creating Kotlin Android project; Getting ready; How to do it ... ; There's more ... ; How to use Gradle to run Kotlin code; Getting ready; How to do it ... ; There's more ... ; See also; How to run a Kotlin compiled class; Getting ready; How to do it ... ; How it works ... ; There's more ... ; How to build a self-executable JAR with Gradle and Kotlin; Getting ready; How to do it ... ; How it works ... ; Reading console input in Kotlin.
- Getting readyHow to do it ... ; How it works ... ; Converting Java code to Kotlin and vice versa; Getting ready; How to do it ... ; How it works ... ; How to write an idiomatic logger in Kotlin; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Escaping for Java identifiers that are keywords in Kotlin; Getting ready; How to do it ... ; How it works ... ; Disambiguating using the ""as"" keyword to locally rename the clashing entity; Getting ready; How to do it ... ; Doing bit manipulations in Kotlin; Getting ready; How to do it ... ; Or; and; xor; inv; shl; shr; ushr; How it works ...
- Parsing String to Long, Double, or IntGetting ready; How to do it ... ; Converting String to Long; Converting string to Long using string.toLongOrNull(); Converting with special radix; Parsing string to Long with special radix; How it works ... ; There's more ... ; Using String templates in Kotlin; How to do it ... ; How it works ... ; Thereâ#x80;#x99;s more ... ; Chapter 2: Control Flow; Introduction; Assigning result to an expression using the if keyword; Getting ready; How to do it ... ; There's more ... ; Using range with the when expression; Getting ready; How to do it ... ; How it works ... ; There's more ...
- Using when with custom objectsGetting ready; How to do it ... ; How it works ... ; Using tryâ#x80;#x93;catch as an expression; Getting ready; How to do it ... ; How it works ... ; There's more ... ; How to write a swap function in Kotlin using the also function; Getting ready; How to do it ... ; How it works ... ; There's more ... ; How to throw a custom exception in Kotlin; Getting ready; How to do it ... ; How it works ... ; How to make a multiconditional loop in Kotlin; Getting ready; How to do it ... ; How it works ... ; Chapter 3: Classes and Objects; Introduction; Initializing body of constructor; Getting ready.
- How to do it ... Converting one data type into another; Getting ready; How to do it ... ; How it works ... ; How to type check an object; Getting ready; How to do it ... ; How it works ... ; There's more ... ; How to work with an abstract class in Kotlin; Getting ready; How to do it ... ; How it works ... ; How to iterate over a class's properties in Kotlin; Getting ready; How to do it ... ; How it works ... ; There's more ... ; How to work with inline properties; Getting ready; How to do it ... ; How it works ... ; How to work with nested class; Getting ready; How to do it ... ; How it works ... ; There's more ...