Nicht aus der Schweiz? Besuchen Sie lehmanns.de
Functional Interfaces in Java - Ralph Lecessi

Functional Interfaces in Java

Fundamentals and Examples

(Autor)

Buch | Softcover
XVII, 410 Seiten
2019
Apress (Verlag)
978-1-4842-4277-3 (ISBN)
CHF 97,35 inkl. MwSt
  • A one of a kind comprehensive and practical guide on Java functional interfaces
  • Includes the latest Java 11, 10 and 9 APIs
  • Presents extensive detail on functional interfaces in the Java APIs and how to utilize them to accomplish many programming tasks

Reduce development time by organizing your programs as chains of functional interfaces and see that the advantages of using functional interfaces include the flexibility and power of inlined functional chains and reuse of functional methods utilized throughout the Java API.

You'll see how complex logical expressions can be reduced to chains of predicates and how chains of comparators can be used to sort data by several criteria in order. Other examples include streams that utilize functional interfaces to filter, sort, transform, and perform calculations on data; CompletableFutures that use functional interfaces to create cascading and parallel execution threads; and JavaFX programs that use functional interfaces to monitor the data backed by their graphical components.

Each chapter contains a complete programming project: the Discount Dave project shows you how to qualify car customers by organizing questions as a list of predicates; the Real Estate Broker project shows you how to use chains of comparators to filter and sort homes according to customer priorities; the Dave's Part Inventory project shows you how to query and write reports from an inventory database using stream operations; and the Sentence Builder project shows you how to correct a sentence by implementing each grammar rule as a separate link in a future chain.

Functional Interfaces in Java will help you quickly develop powerful and reliable programs that utilize functional interfaces to implement logic and calculations.

You will learn how to
  • Use the functional interfaces in the java.util.function package to perform conditional logic, transform and generate data, and perform calculations
  • Filter and sort data by several criteria using comparators
  • Process collections and filter, sort, transform, and reduce stream elements with functional interfaces
  • Write cascading and parallel execution threads

This book is for Computer science student or a professional Java programmer. This work is a rigorous discussion of the application of functional interfaces, so prerequisites for this text include basic Java programming and object-oriented Java programming.

Ralph Lecessi is a software engineer with over 30 years' professional programming experience in the aerospace, telecommunications, and payment industries at companies including Lockheed Martin, Alcatel-Lucent, AT&T, and Northrop Grumman. He is currently lead embedded software developer at TranSendIT, Inc in Mount Laurel, New Jersey. Ralph is also the author of JAVATM - The Beginnings-a text on basic Java programming that includes many examples and diagrams. Ralph is an adjunct professor of programming at Middlesex County College, where he teaches basic and object-oriented programming in Java. He lives in South Brunswick, New Jersey, with his wife and two children.

1: Functional Interfaces2: Lambda Expressions3: Predicates4: Functions5: Operators6: Consumers7: Suppliers8: Use in Traversing Objects9: Use in Collections10: Use in Comparing Objects11: Use in Optionals12: Use in Streams13: Use in Multithreaded Programs14: Use in Atomic Calculations15: Use in JavaFX ApplicationsAppendix A: Method References

“The book is well written and the chapters are ordered in a logical way. … this book can be used for self-study and as a professional reference.” (Hector Antonio Villa-Martinez, Computing Reviews, September 27, 2022)

Erscheinungsdatum
Zusatzinfo 10 Illustrations, black and white
Verlagsort Berkley
Sprache englisch
Maße 178 x 254 mm
Gewicht 810 g
Einbandart kartoniert
Themenwelt Informatik Programmiersprachen / -werkzeuge Java
Informatik Theorie / Studium Compilerbau
Schlagworte Code • Computer Science • CS • Functional • interfaces • Java • programming • Software • source • Tech
ISBN-10 1-4842-4277-7 / 1484242777
ISBN-13 978-1-4842-4277-3 / 9781484242773
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
mit über 150 Workouts in Java und Python

von Luigi Lo Iacono; Stephan Wiefling; Michael Schneider

Buch (2023)
Carl Hanser (Verlag)
CHF 41,95
Einführung, Ausbildung, Praxis

von Christian Ullenboom

Buch | Hardcover (2023)
Rheinwerk (Verlag)
CHF 69,85