@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 library.
See the Guava User Guide article on primitive utilities.
Contents
General static utilities
Per-type static utilities
Value types
-
Class Summary Class Description Booleans Static utility methods pertaining tobooleanprimitives, that are not already found in eitherBooleanorArrays.Booleans.BooleanArrayAsList Bytes Static utility methods pertaining tobyteprimitives, that are not already found in eitherByteorArrays, and interpret bytes as neither signed nor unsigned.Bytes.ByteArrayAsList Chars Static utility methods pertaining tocharprimitives, that are not already found in eitherCharacterorArrays.Chars.CharArrayAsList Doubles Static utility methods pertaining todoubleprimitives, that are not already found in eitherDoubleorArrays.Doubles.DoubleArrayAsList Doubles.DoubleConverter DoublesMethodsForWeb Holder for web specializations of methods ofDoubles.Floats Static utility methods pertaining tofloatprimitives, that are not already found in eitherFloatorArrays.Floats.FloatArrayAsList Floats.FloatConverter FloatsMethodsForWeb Holder for web specializations of methods ofFloats.ImmutableDoubleArray An immutable array ofdoublevalues, with an API resemblingList.ImmutableDoubleArray.AsList ImmutableDoubleArray.Builder A builder forImmutableDoubleArrayinstances; obtained usingImmutableDoubleArray.builder(int).ImmutableIntArray An immutable array ofintvalues, with an API resemblingList.ImmutableIntArray.AsList ImmutableIntArray.Builder A builder forImmutableIntArrayinstances; obtained usingImmutableIntArray.builder(int).ImmutableLongArray An immutable array oflongvalues, with an API resemblingList.ImmutableLongArray.AsList ImmutableLongArray.Builder A builder forImmutableLongArrayinstances; obtained usingImmutableLongArray.builder(int).Ints Static utility methods pertaining tointprimitives, that are not already found in eitherIntegerorArrays.Ints.IntArrayAsList Ints.IntConverter IntsMethodsForWeb Holder for web specializations of methods ofInts.Longs Static utility methods pertaining tolongprimitives, that are not already found in eitherLongorArrays.Longs.AsciiDigits Longs.LongArrayAsList Longs.LongConverter ParseRequest A string to be parsed as a number and the radix to interpret it in.Platform Methods factored out so that they can be emulated differently in GWT.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.Shorts.ShortArrayAsList Shorts.ShortConverter ShortsMethodsForWeb Holder for web specializations of methods ofShorts.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).UnsignedBytes.LexicographicalComparatorHolder Provides a lexicographical comparator implementation; either a Java implementation or a faster implementation based onUnsafe.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).UnsignedLongs.ParseOverflowDetection