Uses of Class
com.google.common.primitives.ImmutableLongArray
Package
Description
Static utilities for the eight primitive types and
void
, and value types for treating
them as unsigned or storing them in immutable arrays.-
Uses of ImmutableLongArray in com.google.common.primitives
Modifier and TypeMethodDescriptionImmutableLongArray.Builder.build()
Returns a new immutable array.static ImmutableLongArray
ImmutableLongArray.copyOf
(long[] values) Returns an immutable array containing the given values, in order.static ImmutableLongArray
Returns an immutable array containing the given values, in order.static ImmutableLongArray
ImmutableLongArray.copyOf
(Collection<Long> values) Returns an immutable array containing the given values, in order.static ImmutableLongArray
ImmutableLongArray.copyOf
(LongStream stream) Returns an immutable array containing all the values fromstream
, in order.static ImmutableLongArray
ImmutableLongArray.of()
Returns the empty array.static ImmutableLongArray
ImmutableLongArray.of
(long e0) Returns an immutable array containing a single value.static ImmutableLongArray
ImmutableLongArray.of
(long e0, long e1) Returns an immutable array containing the given values, in order.static ImmutableLongArray
ImmutableLongArray.of
(long first, long... rest) Returns an immutable array containing the given values, in order.static ImmutableLongArray
ImmutableLongArray.of
(long e0, long e1, long e2) Returns an immutable array containing the given values, in order.static ImmutableLongArray
ImmutableLongArray.of
(long e0, long e1, long e2, long e3) Returns an immutable array containing the given values, in order.static ImmutableLongArray
ImmutableLongArray.of
(long e0, long e1, long e2, long e3, long e4) Returns an immutable array containing the given values, in order.static ImmutableLongArray
ImmutableLongArray.of
(long e0, long e1, long e2, long e3, long e4, long e5) Returns an immutable array containing the given values, in order.ImmutableLongArray.subArray
(int startIndex, int endIndex) Returns a new immutable array containing the values in the specified range.ImmutableLongArray.trimmed()
Returns an immutable array containing the same values asthis
array.Modifier and TypeMethodDescriptionImmutableLongArray.Builder.addAll
(ImmutableLongArray values) Appendsvalues
, in order, to the end of the values the builtImmutableLongArray
will contain.