思维导图备注

AndroidDevelopmentwithKotlin
首页 下载 收藏书籍 阅读记录
  • 书签 我的书签
  • 添加书签 添加书签 移除书签 移除书签

Beginning Your Kotlin Adventure

浏览 4 扫码
  • 小字体
  • 中字体
  • 大字体
2023-09-04 21:26:42
请 登录 再阅读
上一篇:
下一篇:
  • 书签
  • 添加书签 移除书签
  • Preface
    • What this book covers
    • What you need for this book
    • Who this book is for
    • Conventions
    • Reader feedback
    • Customer support
      • Downloading the example code
      • Errata
      • Piracy
      • Questions
  • Beginning Your Kotlin Adventure
    • Say hello to Kotlin
    • Awesome Kotlin examples
    • Dealing with Kotlin code
      • Kotlin Playground
      • Android Studio
        • Configuring Kotlin for the project
        • Using Kotlin in a new Android project
        • Java to Kotlin converter (J2K)
        • Alternative ways to run Kotlin code
    • Kotlin under the hood
      • The Kotlin standard library
    • More reasons to use Kotlin
    • Summary
  • Laying a Foundation
    • Variables
    • Type inference
    • Strict null safety
      • Safe call
      • Elvis operator
      • Not null assertion
      • Let
    • Nullability and Java
    • Casts
      • Safe/unsafe cast operator
      • Smart casts
        • Type smart casts
        • Non-nullable smart cast
    • Primitive data types
      • Numbers
      • Char
      • Arrays
      • The Boolean type
    • Composite data types
      • Strings
        • String templates
      • Ranges
      • Collections
    • Statements versus expressions
    • Control flow
      • The if statement
      • The when expression
      • Loops
        • The for loop
        • The while loop
        • Other iterations
        • Break and continue
    • Exceptions
      • The try... catch block
    • Compile-time constants
    • Delegates
    • Summary
  • Playing with Functions
    • Basic function declaration and usages
      • Parameters
      • Returning functions
    • Vararg parameter
    • Single-expression functions
    • Tail-recursive functions
    • Different ways of calling a function
      • Default arguments values
      • Named arguments syntax
    • Top-level functions
    • Top-level functions under the hood
    • Local functions
    • Nothing return type
    • Summary
  • Classes and Objects
    • Classes
      • Class declaration
    • Properties
      • Read-write versus read-only property
      • Property access syntax between Kotlin and Java
        • Increment and decrement operators
      • Custom getters/setters
        • The getter versus property default value
      • Late-initialized properties
      • Annotating properties
      • Inline properties
    • Constructors
      • Property versus constructor parameter
      • Constructor with default arguments
        • Patterns
    • Inheritance
      • The JvmOverloads annotation
    • Interfaces
    • Data classes
      • The equals and hashCode method
      • The toString method
      • The copy method
      • Destructive declarations
    • Operator overloading
    • Object declaration
    • Object expression
    • Companion objects
      • Companion object instantiation
    • Enum classes
    • Infix calls for named methods
    • Visibility modifiers
      • Internal modifier and Java bytecode
    • Sealed classes
    • Nested classes
    • Import aliases
    • Summary
  • Functions as First-Class Citizens
    • Function type
      • What is function type under the hood?
    • Anonymous functions
    • Lambda expressions
      • Implicit name of a single parameter
    • Higher-order functions
      • Providing operations to functions
      • Observer (Listener) pattern
      • Callback after a threaded operation
    • Combination of named arguments and lambda expressions
    • Last lambda in argument convention
      • Named code surrounding
      • Processing data structures using LINQ style
    • Java SAM support in Kotlin
    • Named Kotlin function types
      • Named parameters in function type
      • Type alias
    • Underscore for unused variables
    • Destructuring in lambda expressions
    • Inline functions
      • The noinline modifier
      • Non-local returns
      • Labeled return in lambda expressions
      • Crossinline modifier
      • Inline properties
    • Function References
    • Summary
  • Generics Are Your Friends
    • Generics
      • The need for generics
        • Type parameters versus type arguments
    • Generic constraints
      • Nullability
    • Variance
      • Variance modifiers
      • Use-site variance versus declaration-site variance
      • Collection variance
      • Variance producer/consumer limitation
      • Invariant constructor
    • Type erasure
      • Reified type parameters
        • The startActivity method
    • Star-projections
    • Type parameter naming conventions
    • Summary
  • Extension Functions and Properties
    • Extension functions
      • Extension functions under the hood
        • No method overriding
        • Access to receiver elements
        • Extensions are resolved statically
      • Companion object extensions
      • Operator overloading using extension functions
      • Where should top-level extension functions be used?
    • Extension properties
      • Where should extension properties be used?
    • Member extension functions and properties
      • Type of receivers
      • Member extension functions and properties under the hood
    • Generic extension functions
      • Collection processing
        • Kotlin collection type hierarchy
        • The map, filter, flatMap functions
        • The forEach and onEach functions
        • The withIndex and indexed variants
        • The sum, count, min, max, and sorted functions
        • Other stream processing functions
        • Examples of stream collection processing
        • Sequence
    • Function literals with receiver
      • Kotlin standard library functions
        • The let function
        • Using the apply function for initialization
        • The also function
        • The run and with function
        • The to function
      • Domain-specific language
        • Anko
    • Summary
  • Delegates
    • Class delegation
      • Delegation pattern
      • Decorator pattern
    • Property delegation
      • What are delegated properties?
      • Predefined delegates
        • The lazy function
        • The notNull function
        • The observable delegate
        • The vetoable delegate
        • Property delegation to Map type
      • Custom delegates
        • View binging
        • Preference binding
        • Providing a delegate
    • Summary
  • Making Your Marvel Gallery Application
    • Marvel Gallery
      • How to use this chapter
      • Make an empty project
      • Character gallery
        • View implementation
        • Network definition
        • Business logic implementation
        • Putting it all together
      • Character search
      • Character profile display
    • Summary
暂无相关搜索结果!
    展开/收起文章目录

    二维码

    手机扫一扫,轻松掌上学

    《AndroidDevelopmentwithKotlin》电子书下载

    请下载您需要的格式的电子书,随时随地,享受学习的乐趣!
    EPUB 电子书

    书签列表

      阅读记录

      阅读进度: 0.00% ( 0/0 ) 重置阅读进度