Getting Started with Google Guava
暫譯: 開始使用 Google Guava
Bill Bejeck
- 出版商: Packt Publishing
- 出版日期: 2013-06-29
- 售價: $1,190
- 貴賓價: 9.5 折 $1,131
- 語言: 英文
- 頁數: 142
- 裝訂: Paperback
- ISBN: 1783280158
- ISBN-13: 9781783280155
海外代購書籍(需單獨結帳)
相關主題
商品描述
Google Guava can transform the way you work with Java and this book shows you how. From beginner to expert, everyone can benefit from this smart guide that teaches faster, better coding.
Overview
- Write more robust code that is easier to read and maintain
- Learn how to use Preconditions to prevent and find errors faster
- Shows how Guava Collections can make working with Java Collections a breeze
In Detail
Java continues to maintain its popularity and is still one of the main languages used in the software industry today. But there are things in Java that are difficult to do that can be made easier; that’s where Guava comes in. Guava provides developers with a way to write better code, with less effort.
Getting Started with Google Guava will show the reader how to start improving their code from the very first chapter. Packed with examples and loads of source code, this book will have an immediate impact on how you work with Java.
This book starts with using Guava to help with the common tasks that Java developers perform. Then you’ll work your way through more specialized situations and finally some great functionality Guava provides that can add a lot of power to your applications with little effort. You will learn about Guava’s famous Collections classes that add unique features, like the Bi-Map, to Java’s already great Collection classes. We’ll see how to add some functional programming aspects to our code. We will also learn about using a self-loading cache for improved performance in our applications, and how to use the EventBus to create software that takes advantage of event-based programming.
What you will learn from this book
- Master String manipulation with ease including creating a HashMap from formatted text
- Harness the power of functional programming with Functions and Predicates
- Use the power of Guava’s Collections classes
- Get to grips with better ways of writing and reading files with less boilerplate
- Improve synchronization with the Monitor
- Create and use a self-loading cache for better performance
- Leverage the power of event-based programming with the EventBus
- Never get another NullPointerException by using the Optional class
Approach
This is a short, practical guide, with lots of examples to help you learn Google Guava
Who this book is written for
There is no minimum level of experience required. There is something for everyone who works with Java, from the beginner to the expert programmer.
商品描述(中文翻譯)
Google Guava 可以改變您使用 Java 的方式,而這本書將告訴您如何做到這一點。從初學者到專家,每個人都能從這本智能指南中受益,學習更快、更好的編碼。
概述
- 編寫更健壯的代碼,使其更易於閱讀和維護
- 學習如何使用 Preconditions 來更快地防止和發現錯誤
- 展示 Guava Collections 如何使 Java Collections 的使用變得輕鬆
詳細內容
Java 繼續保持其受歡迎程度,並且仍然是當今軟體行業中使用的主要語言之一。但在 Java 中有些事情難以處理,而 Guava 可以使這些事情變得更簡單。Guava 為開發人員提供了一種更輕鬆編寫更好代碼的方法。
《開始使用 Google Guava》將向讀者展示如何從第一章開始改善他們的代碼。本書充滿了範例和大量的源代碼,將對您使用 Java 的方式產生立即的影響。
本書首先使用 Guava 來幫助 Java 開發人員執行常見任務。然後,您將逐步處理更專門的情況,最後介紹 Guava 提供的一些強大功能,這些功能可以在不費力的情況下為您的應用程式增添許多力量。您將了解 Guava 的著名 Collections 類,這些類為 Java 已經出色的 Collection 類添加了獨特的功能,例如 Bi-Map。我們將看到如何將一些函數式編程的概念添加到我們的代碼中。我們還將學習如何使用自加載快取來改善我們應用程式的性能,以及如何使用 EventBus 創建利用事件驅動編程的軟體。
您將從這本書中學到的內容
- 輕鬆掌握字串操作,包括從格式化文本創建 HashMap
- 利用函數和謂詞的力量進行函數式編程
- 使用 Guava 的 Collections 類的強大功能
- 掌握更好的文件讀寫方式,減少樣板代碼
- 改善與 Monitor 的同步
- 創建和使用自加載快取以提高性能
- 利用 EventBus 的事件驅動編程的力量
- 通過使用 Optional 類,避免再次出現 NullPointerException
方法
這是一本簡短的實用指南,包含大量範例以幫助您學習 Google Guava。
本書的讀者對象
不需要任何最低經驗水平。對於所有使用 Java 的人,從初學者到專業程序員,都有適合的內容。