Fundamentals and Examples
Buch, Englisch, 410 Seiten, Format (B × H): 178 mm x 254 mm, Gewicht: 800 g
ISBN: 978-1-4842-4277-3
Verlag: Apress
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.
What You Will Learn
-
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
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.
Zielgruppe
Professional/practitioner
Autoren/Hrsg.
Fachgebiete
Weitere Infos & Material
1: Functional Interfaces.- 2: Lambda Expressions.- 3: Predicates.- 4: Functions.- 5: Operators.- 6: Consumers.- 7: Suppliers.- 8: Use in Traversing Objects.- 9: Use in Collections.- 10: Use in Comparing Objects.- 11: Use in Optionals.- 12: Use in Streams.- 13: Use in Multithreaded Programs.- 14: Use in Atomic Calculations.- 15: Use in JavaFX Applications.- Appendix A: Method References.




