@ParametersAreNonnullByDefault
Package com.google.common.primitives
Static utilities for working with the eight primitive types and
void
,
and value types for treating them as unsigned.
This package is a part of the open-source Guava libraries.
See the Guava User Guide article on primitive utilities.
Contents
General static utilities
Per-type static utilities
Value types
-
Class Summary Class Description Booleans Bytes Chars Doubles Floats Ints Longs Primitives Contains static utility methods pertaining to primitive types and their corresponding wrapper types.Shorts SignedBytes Static utility methods pertaining tobyte
primitives that interpret values as signed.UnsignedBytes Static utility methods pertaining tobyte
primitives that interpret values as unsigned (that is, any negative valueb
is treated as the positive value256 + b
).UnsignedInteger A wrapper class for unsignedint
values, supporting arithmetic operations.UnsignedInts Static utility methods pertaining toint
primitives that interpret values as unsigned (that is, any negative valuex
is treated as the positive value2^32 + x
).UnsignedLong A wrapper class for unsignedlong
values, supporting arithmetic operations.UnsignedLongs Static utility methods pertaining tolong
primitives that interpret values as unsigned (that is, any negative valuex
is treated as the positive value2^64 + x
).