public final class ObjArray<E> extends Object implements ReadOnlyObjList<E>, Iterable<E>, Cloneable
Modifier and Type | Method and Description |
---|---|
ObjArray<E> |
clone() |
static <T> void |
copy(ObjArray<? extends T> src,
int srcPos,
ObjArray<T> dst,
int dstPos,
int len) |
boolean |
equals(Object o)
default implementation is just an identity check
|
void |
fill(E e) |
E |
get(int idx) |
int |
hashCode() |
Iterator<E> |
iterator() |
int |
length() |
void |
nullify() |
void |
set(int idx,
E e) |
E[] |
toArray(E[] a) |
static <T> ObjArray<T> |
zeroLength() |
public ObjArray(int size)
public ObjArray(E[] data)
public E get(int idx)
get
in interface ReadOnlyObjList<E>
public void set(int idx, E e)
public int length()
length
in interface ReadOnlyObjList<E>
public boolean equals(Object o)
Object
public void fill(E e)
public void nullify()
public static <T> void copy(ObjArray<? extends T> src, int srcPos, ObjArray<T> dst, int dstPos, int len)
public static <T> ObjArray<T> zeroLength()