Functional Interfaces in Java: Fundamentals and Examples
暫譯: Java中的函數式介面:基礎與範例

Ralph Lecessi

  • 出版商: Apress
  • 出版日期: 2019-02-14
  • 售價: $1,980
  • 貴賓價: 9.5$1,881
  • 語言: 英文
  • 頁數: 428
  • 裝訂: Paperback
  • ISBN: 1484242777
  • ISBN-13: 9781484242773
  • 相關分類: Java 程式語言
  • 立即出貨 (庫存=1)

  • Functional Interfaces in Java: Fundamentals and Examples-preview-1
  • Functional Interfaces in Java: Fundamentals and Examples-preview-2
  • Functional Interfaces in Java: Fundamentals and Examples-preview-3
  • Functional Interfaces in Java: Fundamentals and Examples-preview-4
  • Functional Interfaces in Java: Fundamentals and Examples-preview-5
  • Functional Interfaces in Java: Fundamentals and Examples-preview-6
  • Functional Interfaces in Java: Fundamentals and Examples-preview-7
  • Functional Interfaces in Java: Fundamentals and Examples-preview-8
  • Functional Interfaces in Java: Fundamentals and Examples-preview-9
  • Functional Interfaces in Java: Fundamentals and Examples-preview-10
  • Functional Interfaces in Java: Fundamentals and Examples-preview-11
  • Functional Interfaces in Java: Fundamentals and Examples-preview-12
Functional Interfaces in Java: Fundamentals and Examples-preview-1

買這商品的人也買了...

商品描述

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 中重用功能方法。您將看到如何將複雜的邏輯表達式簡化為謂詞的鏈,以及如何使用比較器的鏈根據多個標準對數據進行排序。其他示例包括利用功能介面過濾、排序、轉換和對數據進行計算的流;使用功能介面創建級聯和並行執行線程的 CompletableFutures;以及使用功能介面監控其圖形組件背後數據的 JavaFX 程式。

每一章都包含一個完整的程式設計專案:Discount Dave 專案展示了如何通過將問題組織為謂詞列表來篩選汽車客戶;Real Estate Broker 專案展示了如何使用比較器的鏈根據客戶優先級過濾和排序房屋;Dave's Part Inventory 專案展示了如何使用流操作查詢和撰寫庫存數據庫的報告;而 Sentence Builder 專案展示了如何通過將每個語法規則實現為未來鏈中的單獨鏈接來修正句子。

《Functional Interfaces in Java》將幫助您快速開發強大且可靠的程式,利用功能介面來實現邏輯和計算。

您將學到的內容:
- 使用 java.util.function 包中的功能介面來執行條件邏輯、轉換和生成數據,以及進行計算
- 使用比較器根據多個標準過濾和排序數據
- 處理集合,並使用功能介面過濾、排序、轉換和減少流元素
- 編寫級聯和並行執行線程

本書適合對象:
計算機科學學生或專業 Java 程式設計師。本書對功能介面的應用進行了嚴謹的討論,因此本書的先決條件包括基本的 Java 程式設計和面向對象的 Java 程式設計。