Alan Mycroft, Mario Fusco, Raoul-Gabriel Urma - Java 8 in Action


Alan Mycroft, Mario Fusco, Raoul-Gabriel Urma - Java 8 in Action

Java 8 in Action

Год: 2015

Автор: Alan Mycroft, Mario Fusco, Raoul-Gabriel Urma

Издательство: Manning

ISBN: 9781617291999

Язык: Английский

Формат: PDF

Качество: Изначально компьютерное (eBook)

Интерактивное оглавление: Да

Количество страниц: 497

Описание: Java 8 in Action is a clearly written guide to the new features of Java 8. The book covers lambdas, streams, and functional-style programming. With Java 8’s functional features you can now write more concise code in less time, and also automatically benefit from multicore architectures. It’s time to dig in!

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the Book

Every new version of Java is important, but Java 8 is a game changer. Java 8 in Action is a clearly written guide to the new features of Java 8. It begins with a practical introduction to lambdas, using real-world Java code. Next, it covers the new Streams API and shows how you can use it to make collection-based code radically easier to understand and maintain. It also explains other major Java 8 features including default methods, Optional, CompletableFuture, and the new Date and Time API.

This book is written for programmers familiar with Java and basic OO programming.

What’s Inside

- How to use Java 8’s powerful new features

- Writing effective multicore-ready applications

- Refactoring, testing, and debugging

Copyright 3


Part 1. Fundamentals11

Chapter 1. Java 8: why should you care? 12

Chapter 2. Passing code with behavior parameterization 37

Chapter 3. Lambda expressions56

Part 2. Functional-style data processing99

Chapter 4. Introducing streams 100

Chapter 5. Working with streams118

Chapter 6. Collecting data with streams159

Chapter 7. Parallel data processing and performance203

Part 3. Effective Java 8 programming 233

Chapter 8. Refactoring, testing, and debugging 234

Chapter 9. Default methods 262

Chapter 10. Using Optional as a better alternative to null 285

Chapter 11. CompletableFuture: composable asynchronous programming 309

Chapter 12. New Date and Time API343

Part 4. Beyond Java 8 363

Chapter 13. Thinking functionally364

Chapter 14. Functional programming techniques 381

Chapter 15. Blending OOP and FP: comparing Java 8 and Scala 412

Chapter 16. Conclusions and where next for Java 431

Appendix A. Miscellaneous language updates447

Appendix B. Miscellaneous library updates452

Appendix C. Performing multiple operations in parallel on a stream462

Appendix D. Lambdas and JVM bytecode 473

Index 479

Опубликовано группой