Module dev.mccue.guava.primitives
Package dev.mccue.guava.primitives
@ParametersAreNonnullByDefault
@CheckReturnValue
package dev.mccue.guava.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
BooleansBytesSignedBytesUnsignedBytes
CharsDoublesFloatsIntsUnsignedInts
LongsUnsignedLongs
Shorts
General static utilities
Primitives
-
ClassesClassDescriptionStatic utility methods pertaining to
booleanprimitives, that are not already found in eitherBooleanorArrays.Static utility methods pertaining tobyteprimitives, that are not already found in eitherByteorArrays, and interpret bytes as neither signed nor unsigned.Static utility methods pertaining tocharprimitives, that are not already found in eitherCharacterorArrays.Static utility methods pertaining todoubleprimitives, that are not already found in eitherDoubleorArrays.Static utility methods pertaining tofloatprimitives, that are not already found in eitherFloatorArrays.An immutable array ofdoublevalues, with an API resemblingList.A builder forImmutableDoubleArrayinstances; obtained usingImmutableDoubleArray#builder.An immutable array ofintvalues, with an API resemblingList.A builder forImmutableIntArrayinstances; obtained usingImmutableIntArray#builder.An immutable array oflongvalues, with an API resemblingList.A builder forImmutableLongArrayinstances; obtained usingImmutableLongArray#builder.Static utility methods pertaining tointprimitives, that are not already found in eitherIntegerorArrays.Static utility methods pertaining tolongprimitives, that are not already found in eitherLongorArrays.Contains static utility methods pertaining to primitive types and their corresponding wrapper types.Static utility methods pertaining toshortprimitives, that are not already found in eitherShortorArrays.Static utility methods pertaining tobyteprimitives that interpret values as signed.Static utility methods pertaining tobyteprimitives that interpret values as unsigned (that is, any negative valuebis treated as the positive value256 + b).A wrapper class for unsignedintvalues, supporting arithmetic operations.Static utility methods pertaining tointprimitives that interpret values as unsigned (that is, any negative valuexis treated as the positive value2^32 + x).A wrapper class for unsignedlongvalues, supporting arithmetic operations.Static utility methods pertaining tolongprimitives that interpret values as unsigned (that is, any negative valuexis treated as the positive value2^64 + x).