public class LongArray
extends java.lang.Object
Interface LongArray represents an immutable long[] array.
| Constructor | Description |
|---|---|
LongArray(long[] values) |
Constructs a
LongArray instance from the specified values. |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
asString(LongArray ia) |
Returns a string representation of this
LongArray by applying
java.utils.Arrays.toString() to an equivalent int[]
object. |
static boolean |
equals(LongArray a,
LongArray b) |
Returns
true if the specified LongArray objects
represent the same sequence of long values, and returns false
otherwise. |
long |
get(int index) |
Returns the specified array element.
|
int |
size() |
Returns the number of elements in this
LongArray. |
static long[] |
toArray(LongArray la) |
Returns a copy of the specified array.
|
public LongArray(long[] values)
LongArray instance from the specified values.values - a long arrayjava.lang.NullPointerException - if values == nullpublic int size()
LongArray.LongArraypublic long get(int index)
index - an array indexjava.lang.IndexOutOfBoundsException - if
index < 0 || index >= this.size()public static long[] toArray(LongArray la)
la - a list of longsjava.lang.NullPointerException - if ia == nullpublic static java.lang.String asString(LongArray ia)
LongArray by applying
java.utils.Arrays.toString() to an equivalent int[]
object.ia - a list of longsLongArray.java.lang.NullPointerException - if ia == nullpublic static boolean equals(LongArray a, LongArray b)
true if the specified LongArray objects
represent the same sequence of long values, and returns false
otherwise.a - a sequence of long valuesb - a sequence of long valuestrue if the specified LongArray objects
represent the same sequence of long values