Guava 简明教程

Guava Tutorial

Guava 是一个开源的、基于 Java 的库,它是由 Google 开发的。它促进了良好的编程实践,并有助于减少代码错误。它为集合、缓存、基本类型支持、并发、通用注解、字符串处理、I/O 和验证提供了工具方法。本教程采用简单直观的方法描述了 Guava 的基础和高级概念,以及如何使用其 API。

Guava is an open source, Java-based library developed by Google. It facilitates best coding practices and helps reduce coding errors. It provides utility methods for collections, caching, primitives support, concurrency, common annotations, string processing, I/O, and validations. This tutorial adopts a simple and intuitive way to describe the basic-to-advanced concepts of Guava and how to use its APIs.

Audience

本教程将对大多数 Java 开发人员(从初学者到专家)有所帮助。完成本教程后,我们相信你将可以在你的程序中轻松使用 Guava。

This tutorial will be useful for most Java developers, starting from beginners to experts. After completing this tutorial, we are confident you will find it easy to use Guava in your programs.

Prerequisites

要充分利用本教程,唯一的先决条件是有过 Java 编程经验。

Prior exposure to Java programming is the only requirement to make the most of this tutorial.