Kotlin Quick Start Guide : Core Features to Get You Ready for Developing Applications.
Material type:
- text
- computer
- online resource
- 9781789342598
- 004.167
- QA76.76.A65 .D483 2018
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 -- Packages -- Visibility 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 arguments -- Default 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 thread -- Synchronized 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 functions -- Drop -- 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 -- Developing the dictionary app -- Preparing the data -- Building the UI -- Loading scene -- Main Scene -- Summary -- Other Books You May Enjoy -- Index.
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 the core Kotlin features and get your ready.
Description based on publisher supplied metadata and other sources.
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2024. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
There are no comments on this title.