Package com.google.common.primitives


@ParametersAreNonnullByDefault @CheckReturnValue 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

  • Classes
    Class
    Description
    Static utility methods pertaining to boolean primitives, that are not already found in either Boolean or Arrays.
    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.
    Static utility methods pertaining to char primitives, that are not already found in either Character or Arrays.
    Static utility methods pertaining to double primitives, that are not already found in either Double or Arrays.
    Static utility methods pertaining to float primitives, that are not already found in either Float or Arrays.
    Static utility methods pertaining to int primitives, that are not already found in either Integer or Arrays.
    Static utility methods pertaining to long primitives, that are not already found in either Long or Arrays.
    Contains static utility methods pertaining to primitive types and their corresponding wrapper types.
    Static utility methods pertaining to short primitives, that are not already found in either Short or Arrays.
    Static utility methods pertaining to byte primitives that interpret values as signed.
    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).
    A wrapper class for unsigned int values, supporting arithmetic operations.
    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).
    A wrapper class for unsigned long values, supporting arithmetic operations.
    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).