Package | Description |
---|---|
com.google.common.primitives |
Static utilities for working with the eight primitive types and
void , and value types for
treating them as unsigned. |
Modifier and Type | Method and Description |
---|---|
ImmutableIntArray |
ImmutableIntArray.Builder.build()
Returns a new immutable array.
|
static ImmutableIntArray |
ImmutableIntArray.copyOf(Collection<Integer> values)
Returns an immutable array containing the given values, in order.
|
static ImmutableIntArray |
ImmutableIntArray.copyOf(int[] values)
Returns an immutable array containing the given values, in order.
|
static ImmutableIntArray |
ImmutableIntArray.copyOf(Iterable<Integer> values)
Returns an immutable array containing the given values, in order.
|
static ImmutableIntArray |
ImmutableIntArray.of()
Returns the empty array.
|
static ImmutableIntArray |
ImmutableIntArray.of(int e0)
Returns an immutable array containing a single value.
|
static ImmutableIntArray |
ImmutableIntArray.of(int first,
int... rest)
Returns an immutable array containing the given values, in order.
|
static ImmutableIntArray |
ImmutableIntArray.of(int e0,
int e1)
Returns an immutable array containing the given values, in order.
|
static ImmutableIntArray |
ImmutableIntArray.of(int e0,
int e1,
int e2)
Returns an immutable array containing the given values, in order.
|
static ImmutableIntArray |
ImmutableIntArray.of(int e0,
int e1,
int e2,
int e3)
Returns an immutable array containing the given values, in order.
|
static ImmutableIntArray |
ImmutableIntArray.of(int e0,
int e1,
int e2,
int e3,
int e4)
Returns an immutable array containing the given values, in order.
|
static ImmutableIntArray |
ImmutableIntArray.of(int e0,
int e1,
int e2,
int e3,
int e4,
int e5)
Returns an immutable array containing the given values, in order.
|
ImmutableIntArray |
ImmutableIntArray.subArray(int startIndex,
int endIndex)
Returns a new immutable array containing the values in the specified range.
|
ImmutableIntArray |
ImmutableIntArray.trimmed()
Returns an immutable array containing the same values as
this array. |
Modifier and Type | Method and Description |
---|---|
ImmutableIntArray.Builder |
ImmutableIntArray.Builder.addAll(ImmutableIntArray values)
Appends
values , in order, to the end of the values the built ImmutableIntArray will contain. |
Copyright © 2010–2018. All rights reserved.