@ParametersAreNonnullByDefault @CheckReturnValue
Package com.google.common.primitives
Static utilities for the eight primitive types and
void, and value types for treating
them as unsigned or storing them in immutable arrays.
This package is a part of the open-source Guava library.
See the Guava User Guide article on primitive utilities.
Contents
Value types
ImmutableDoubleArrayImmutableIntArrayImmutableLongrrayUnsignedIntegerUnsignedLong
Per-type static utilities
General static utilities
-
Class Summary Class Description Booleans Static utility methods pertaining tobooleanprimitives, that are not already found in eitherBooleanorArrays.Bytes Static utility methods pertaining tobyteprimitives, that are not already found in eitherByteorArrays, and interpret bytes as neither signed nor unsigned.Chars Static utility methods pertaining tocharprimitives, that are not already found in eitherCharacterorArrays.Doubles Static utility methods pertaining todoubleprimitives, that are not already found in eitherDoubleorArrays.Floats Static utility methods pertaining tofloatprimitives, that are not already found in eitherFloatorArrays.ImmutableDoubleArray An immutable array ofdoublevalues, with an API resemblingList.ImmutableDoubleArray.Builder A builder forImmutableDoubleArrayinstances; obtained usingImmutableDoubleArray.builder(int).ImmutableIntArray An immutable array ofintvalues, with an API resemblingList.ImmutableIntArray.Builder A builder forImmutableIntArrayinstances; obtained usingImmutableIntArray.builder(int).ImmutableLongArray An immutable array oflongvalues, with an API resemblingList.ImmutableLongArray.Builder A builder forImmutableLongArrayinstances; obtained usingImmutableLongArray.builder(int).Ints Static utility methods pertaining tointprimitives, that are not already found in eitherIntegerorArrays.Longs Static utility methods pertaining tolongprimitives, that are not already found in eitherLongorArrays.Primitives Contains static utility methods pertaining to primitive types and their corresponding wrapper types.Shorts Static utility methods pertaining toshortprimitives, that are not already found in eitherShortorArrays.SignedBytes Static utility methods pertaining tobyteprimitives that interpret values as signed.UnsignedBytes Static utility methods pertaining tobyteprimitives that interpret values as unsigned (that is, any negative valuebis treated as the positive value256 + b).UnsignedInteger A wrapper class for unsignedintvalues, supporting arithmetic operations.UnsignedInts Static utility methods pertaining tointprimitives that interpret values as unsigned (that is, any negative valuexis treated as the positive value2^32 + x).UnsignedLong A wrapper class for unsignedlongvalues, supporting arithmetic operations.UnsignedLongs Static utility methods pertaining tolongprimitives that interpret values as unsigned (that is, any negative valuexis treated as the positive value2^64 + x).