一、概述

  Guava工程包含了若干被Google的 Java项目广泛依赖 的核心库,例如:集合 [collections] 、缓存 [caching] 、原生类型支持 [primitives support] 、并发库 [concurrency libraries] 、通用注解 [common annotations] 、字符串处理 [string processing] 、I/O 等等。 所有这些工具每天都在被Google的工程师应用在产品服务中。

guava的优点:

  • 高效设计良好的API,被Google的开发者设计,实现和使用
  • 遵循高效的java语法实践
  • 使代码更刻度,简洁,简单
  • 节约时间,资源,提高生产力

Guava工程包含了若干被Google的 Java项目广泛依赖 的核心库,例如:

  • 集合 [collections]
  • 缓存 [caching]
  • 原生类型支持 [primitives support]
  • 并发库 [concurrency libraries]
  • 通用注解 [common annotations]
  • 字符串处理 [string processing]
  • I/O 等等。

二、基本使用

pom依赖

<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>28.0-jre</version>
</dependency>

程序使用即可

 

相关文章:

  • 2019-01-14
  • 2018-12-29
  • 2019-11-12
  • 2021-10-23
  • 2021-09-24
  • 2022-02-10
  • 2022-12-23
  • 2021-11-02
猜你喜欢
  • 2021-11-07
  • 2021-12-25
  • 2021-05-26
  • 2019-03-12
  • 2021-07-25
  • 2021-08-27
  • 2021-10-09
相关资源
相似解决方案