@Immutable public final class ImmutableArray<T> extends Object implements Immutable
| Modifier and Type | Field and Description |
|---|---|
int |
length |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableArray<T> |
copyOf(T[] elements) |
boolean |
equals(Object obj) |
<E extends Exception> |
forEach(Throwables.Consumer<T,E> consumer) |
T |
get(int index) |
int |
hashCode() |
static <T> ImmutableArray<T> |
of(T[] elements) |
String |
toString() |
public static <T> ImmutableArray<T> of(T[] elements)
public static <T> ImmutableArray<T> copyOf(T[] elements)
public T get(int index)
public <E extends Exception> void forEach(Throwables.Consumer<T,E> consumer) throws E extends Exception
E extends ExceptionCopyright © 2021. All rights reserved.