Professional Documents
Culture Documents
(Download PDF) Modern Java in Action Lambdas Streams Functional and Reactive Programming Raoul Gabriel Urma Online Ebook All Chapter PDF
(Download PDF) Modern Java in Action Lambdas Streams Functional and Reactive Programming Raoul Gabriel Urma Online Ebook All Chapter PDF
https://textbookfull.com/product/real-world-software-
development-1st-edition-raoul-gabriel-urma/
https://textbookfull.com/product/functional-reactive-
programming-1st-edition-stephen-blackheath/
https://textbookfull.com/product/all-about-java-8-lambdas-
introducing-java-8-lambdas-1st-edition-konda/
https://textbookfull.com/product/vert-x-in-action-asynchronous-
and-reactive-java-1st-edition-julien-ponge/
Reactive Web Applications Covers Play Akka and Reactive
Streams 1st Edition Manuel Bernhardt
https://textbookfull.com/product/reactive-web-applications-
covers-play-akka-and-reactive-streams-1st-edition-manuel-
bernhardt/
https://textbookfull.com/product/scala-reactive-programming-
build-scalable-functional-reactive-microservices-with-akka-play-
and-lagom-1st-edition-rambabu-posa/
https://textbookfull.com/product/learning-java-functional-
programming-1st-edition-reese-richard-m/
https://textbookfull.com/product/functional-and-reactive-domain-
modeling-1st-edition-debasish-ghosh/
https://textbookfull.com/product/programming-in-java-sachin-
malhotra/
Lambdas, streams, functional and reactive programming
IN ACTION
Raoul-Gabriel Urma
Mario Fusco
Alan Mycroft
MANNING
Praise for the previous edition, Java 8 in Action,
by Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft.
A great and concise guide to what’s new in Java 8, with plenty of examples to get you
going in a hurry.
—Jason Lee, Oracle
The best guide to Java 8 that will ever be written!
—William Wheeler, ProData Computer Systems
The new Streams API and lambda examples are especially useful.
—Steve Rogers, CGTek, Inc.
A must-have to get functional with Java 8.
—Mayur S. Patil, MIT Academy of Engineering
Helpful as a concise, practice-oriented guide to the exciting new features of Java 8.
Functional interfaces and spliterators, oh my!
—Will Hayworth, Developer, Atlassian
Modern Java in Action
LAMBDAS, STREAMS, FUNCTIONAL
AND REACTIVE PROGRAMMING
MANNING
SHELTER ISLAND
For online information and ordering of this and other Manning books, please visit
www.manning.com. The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 761
Shelter Island, NY 11964
Email: orders@manning.com
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books
are printed on paper that is at least 15 percent recycled and processed without the use of
elemental chlorine.
ISBN: 9781617293566
Printed in the United States of America
1 2 3 4 5 6 7 8 9 10 – DP – 23 22 21 20 19 18
brief contents
PART 1 FUNDAMENTALS ............................................................1
1 ■ Java 8, 9, 10, and 11: what’s happening? 3
2 ■ Passing code with behavior parameterization 26
3 ■ Lambda expressions 42
v
vi BRIEF CONTENTS
1.4 Streams 17
Multithreading is difficult 19
vii
viii CONTENTS
3 Lambda expressions 42
3.1 Lambdas in a nutshell 43
3.2 Where and how to use lambdas 46
Functional interface 46 ■
Function descriptor 48
3.3 Putting lambdas into practice: the execute-around pattern 50
Step 1: Remember behavior parameterization 51 Step 2: Use ■
references 72
CONTENTS ix
4 Introducing streams 81
4.1 What are streams? 82
4.2 Getting started with streams 86
4.3 Streams vs. collections 88
Traversable only once 90 ■
External vs. internal iteration 91
4.4 Stream operations 93
Intermediate operations 94 ■
Terminal operations 95
Working with streams 95
4.5 Road map 96
functions 234
xii CONTENTS
in a DSL 263
10.4 Real World Java 8 DSL 266
jOOQ 266 ■
Cucumber 267 ■
Spring Integration 269
and a time 300 Instant: a date and time for machines 301
■
provides 352
14.9 A bigger example and where to learn more 352
Executor 400
16.4 Pipelining asynchronous tasks 402
Implementing a discount service 403 Using the Discount
■
xxviii
Another random document with
no related content on Scribd:
The Project Gutenberg eBook of Pompei e le sue
rovine, Vol. 1 (of 3)
This ebook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this ebook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.
Language: Italian
VOLUME PRIMO
1872
MILANO — F. SANVITO, EDITORE.
NAPOLI — DETKEN E ROCHOLL.
Proprietà letteraria.
Legge 25 Giugno 1865. Tip. Guglielmini.
INDICE
A
GIOACHIMO CURTI
FRATELLO SUO
NOBILE ECCEZIONE FRA I TANTI
CHE IN OGGI
I VINCOLI E GLI AFFETTI DEL SANGUE
SOMMETTONO ALLO INTERESSE
QUESTA OPERA
DI POMPEI E LE SUE ROVINE
CHE EBBE DA LUI PRIMA E GENEROSA
OCCASIONE
L’AUTORE
INTITOLA E CONSACRA.
INTENDIMENTI DELL’OPERA
volle essere auspice eziandio a questi nuovi studi, che si ponno dire
la ripresa di quelli ai quali m’aveva con tanto amore informato quella
perla di prete e di maestro che fu Antonio Daverio e dai quali usciva
appena il giorno che facevo la prima conoscenza di lui, che mi aveva
ad essere il mio migliore e impareggiabile amico.
POMPEI E LE SUE ROVINE
Tomba di Virgilio. Vol. I. Introduzione.
INTRODUZIONE