Functional Interfaces in Java: Fundamentals and Examples
Ralph Lecessi
買這商品的人也買了...
-
$1,881$1,782 -
$940$700 -
$320$250 -
$480$379 -
$1,900$1,805 -
$505Python 核心編程, 3/e (Core Python Applications Programming, 3/e)
-
$449Hibernate 實戰, 2/e
-
$266深度學習理論與實踐
-
$653$614 -
$505遊戲設計基礎, 3/e (Fundamentals of Game Design, 3/e)
-
$500$390 -
$281修改軟件的藝術 : 構建易維護代碼的 9條最佳實踐 (Beyond Legacy Code: Nine Practices to Extend the Life (and Value) of Your Software)
-
$1,840Reinforcement Learning: With Open AI, TensorFlow and Keras Using Python
-
$1,805Release It!: Design and Deploy Production-Ready Software, 2/e (Paperback)
-
$2,180$2,071 -
$580$452 -
$1,580$1,501 -
$540$459 -
$588$559 -
$1,380$1,311 -
$720$562 -
$454Halcon 機器視覺算法原理與編程實戰
-
$414$393 -
$653好好學 Java : 從零基礎到項目實戰
-
$520$411
相關主題
商品描述
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.
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
Who 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.
商品描述(中文翻譯)
減少開發時間,將程式組織為功能介面的鏈結,並了解使用功能介面的優勢,包括內嵌功能鏈結的靈活性和強大性,以及在整個Java API中重複使用的功能方法。您將看到如何將複雜的邏輯表達式簡化為預測器鏈結,以及如何使用比較器鏈結按多個標準對數據進行排序。其他示例包括使用功能介面來過濾、排序、轉換和計算數據的流;使用功能介面創建級聯和並行執行緒的CompletableFuture;以及使用功能介面監控其圖形組件支持的數據的JavaFX程序。
每個章節都包含一個完整的編程項目:Discount Dave項目將向您展示如何將問題組織為預測器列表,以便對汽車客戶進行資格審查;房地產經紀人項目將向您展示如何使用比較器鏈結根據客戶優先順序過濾和排序房屋;Dave的零件庫存項目將向您展示如何使用流操作從庫存數據庫中查詢和生成報表;句子生成器項目將向您展示如何將每個語法規則實現為未來鏈結中的單獨鏈結,以更正句子。
《Java中的功能介面》將幫助您快速開發利用功能介面實現邏輯和計算的強大可靠的程序。
您將學到什麼:
- 使用java.util.function包中的功能介面執行條件邏輯、轉換和生成數據以及執行計算
- 使用比較器根據多個標準過濾和排序數據
- 使用功能介面處理集合,並過濾、排序、轉換和減少流元素
- 編寫級聯和並行執行緒
本書適合計算機科學學生或專業的Java程序員。本書深入討論了功能介面的應用,因此閱讀本書的先決條件包括基本的Java編程和面向對象的Java編程知識。