📜  Guava-原始实用程序

📅  最后修改于: 2020-11-16 06:54:17             🧑  作者: Mango


由于Java的原始类型不能用于传递泛型或集合中的输入,因此Guava提供了许多Wrapper Utilities类来将原始类型作为对象来处理。以下是有用的原始处理实用程序的列表-

Sr.No Utility name & Description
1 Bytes

Utility for primitive byte.

2 Shorts

Utility for primitive short.

3 Ints

Utility for primitive int.

4 Longs

Utility for primitive long.

5 Floats

Utility for primitive float.

6 Doubles

Utility for primitive double.

7 Chars

Utility for primitive char.

8 Booleans

Utility for primitive boolean.