public class

Ints

extends Object
java.lang.Object
   ↳ com.facebook.common.internal.Ints

Class Overview

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

Summary

Public Methods
static int max(int... array)
Returns the greatest value present in array.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static int max (int... array)

Returns the greatest value present in array.

Parameters
array a nonempty array of int values
Returns
  • the value present in array that is greater than or equal to every other value in the array
Throws
IllegalArgumentException if array is empty