Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (C) 2010 The Guava Authors
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  * http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

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 libraries.

See the Guava User Guide article on primitive utilities.

Contents

General static utilities

  • com.google.common.primitives.Primitives

Per-type static utilities

  • com.google.common.primitives.Booleans
  • com.google.common.primitives.Bytes
    • com.google.common.primitives.SignedBytes
    • com.google.common.primitives.UnsignedBytes
  • com.google.common.primitives.Chars
  • com.google.common.primitives.Doubles
  • com.google.common.primitives.Floats
  • com.google.common.primitives.Ints
    • com.google.common.primitives.UnsignedInts
  • com.google.common.primitives.Longs
    • com.google.common.primitives.UnsignedLongs
  • com.google.common.primitives.Shorts

Value types

  • com.google.common.primitives.UnsignedInteger
  • com.google.common.primitives.UnsignedLong
@ParametersAreNonnullByDefault
package com.google.common.primitives;
import  javax.annotation.ParametersAreNonnullByDefault;

New to GrepCode? Check out our FAQ X