Sealed classes count among Kotlin's most noteworthy features. This talk will walk you through concrete examples of how sealed classes can be used in real projects and show you their potential to improve your code.
00:00 Introduction
01:30 What are Sealed Classes Good For?
02:55 Comparison with Enums
03:22 Sealed Classes As Result Representation
04:26 Using Sealed Classes For Validation
06:02 Kotlin vs Java
08:02 Comparison of Kotlin and Java Implementation
10:34 Constructor and Instantiation Rules
15:47 Representing REST Responses with Sealed Classes
22:22 Q&A
Tom's LinkedIn:
/ zezulatomas
コメント