ORPP logo

Kotlin Quick Start Guide : Core Features to Get You Ready for Developing Applications.

Devcic, Marko.

Kotlin Quick Start Guide : Core Features to Get You Ready for Developing Applications. - 1st ed. - 1 online resource (172 pages)

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.

9781789342598


Android (Electronic resource).
Application software-Development.
Mobile apps-Development.


Electronic books.

QA76.76.A65 .D483 2018

004.167

© 2024 Resource Centre. All rights reserved.