Package com.google.common.primitives
@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
-
ClassDescriptionComparators for
Booleanvalues.Holder for web specializations of methods ofDoubles.Marks all "top-level" types as non-null in a way that is recognized by Kotlin.Holder for web specializations of methods ofFloats.An immutable array ofdoublevalues, with an API resemblingList.A builder forImmutableDoubleArrayinstances; obtained usingImmutableDoubleArray.builder(int).An immutable array ofintvalues, with an API resemblingList.A builder forImmutableIntArrayinstances; obtained usingImmutableIntArray.builder(int).An immutable array oflongvalues, with an API resemblingList.A builder forImmutableLongArrayinstances; obtained usingImmutableLongArray.builder(int).Holder for web specializations of methods ofInts.Marks a "top-level" type-variable usage as (a) a Kotlin platform type when the type argument is non-nullable and (b) nullable when the type argument is nullable.A string to be parsed as a number and the radix to interpret it in.Methods factored out so that they can be emulated differently in GWT.Contains static utility methods pertaining to primitive types and their corresponding wrapper types.Holder for web specializations of methods ofShorts.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).Provides a lexicographical comparator implementation; either a Java implementation or a faster implementation based onUnsafe.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).