Top Description Annotations Classes
[default module]

Package com.google.common.primitives

Annotations
@ParametersAreNonnullByDefault
@CheckReturnValue
Imports
com.google.errorprone.annotations.CheckReturnValue, javax.annotation.ParametersAreNonnullByDefault

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

Per-type static utilities

General static utilities

Annotation Summary

Modifier and TypeAnnotation and Description
pack-priv @interface
ElementTypesAreNonnullByDefault

Marks all "top-level" types as non-null in a way that is recognized by Kotlin.

pack-priv @interface
ParametricNullness

Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.

Class Summary

Modifier and TypeClass and Description
public class
Booleans

Static utility methods pertaining to boolean primitives, that are not already found in either Boolean or Arrays.

public class
Bytes

Static utility methods pertaining to byte primitives, that are not already found in either Byte or Arrays, and interpret bytes as neither signed nor unsigned.

public class
Chars

Static utility methods pertaining to char primitives, that are not already found in either Character or Arrays.

public class
Doubles

Static utility methods pertaining to double primitives, that are not already found in either Double or Arrays.

pack-priv abstract class
DoublesMethodsForWeb

Holder for web specializations of methods of Doubles.

public class
Floats

Static utility methods pertaining to float primitives, that are not already found in either Float or Arrays.

pack-priv abstract class
FloatsMethodsForWeb

Holder for web specializations of methods of Floats.

public class
ImmutableDoubleArray

An immutable array of double values, with an API resembling List.

public class
ImmutableIntArray

An immutable array of int values, with an API resembling List.

public class
ImmutableLongArray

An immutable array of long values, with an API resembling List.

public class
Ints

Static utility methods pertaining to int primitives, that are not already found in either Integer or Arrays.

pack-priv abstract class
IntsMethodsForWeb

Holder for web specializations of methods of Ints.

public class
Longs

Static utility methods pertaining to long primitives, that are not already found in either Long or Arrays.

pack-priv class
ParseRequest

A string to be parsed as a number and the radix to interpret it in.

public class
Primitives

Contains static utility methods pertaining to primitive types and their corresponding wrapper types.

public class
Shorts

Static utility methods pertaining to short primitives, that are not already found in either Short or Arrays.

pack-priv abstract class
ShortsMethodsForWeb

Holder for web specializations of methods of Shorts.

public class
SignedBytes

Static utility methods pertaining to byte primitives that interpret values as signed.

public class
UnsignedBytes

Static utility methods pertaining to byte primitives that interpret values as unsigned (that is, any negative value b is treated as the positive value 256 + b).

public class
UnsignedInteger

A wrapper class for unsigned int values, supporting arithmetic operations.

public class
UnsignedInts

Static utility methods pertaining to int primitives that interpret values as unsigned (that is, any negative value x is treated as the positive value 2^32 + x).

public class
UnsignedLong

A wrapper class for unsigned long values, supporting arithmetic operations.

public class
UnsignedLongs

Static utility methods pertaining to long primitives that interpret values as unsigned (that is, any negative value x is treated as the positive value 2^64 + x).