Constructor and Description |
---|
HugeArrayImpl(Class<T> tClass,
long length) |
Modifier and Type | Method and Description |
---|---|
void |
copyTo(long index,
T to)
Copy the contents of an index to another object
|
T |
get(long index)
Get a recycled object which is a reference to this element.
|
void |
get(long index,
T element)
If the element was returned by get(long), re-index it otherwise, get a copy of the object in the array.
|
long |
length() |
void |
recycle(T t)
recycle the reference,
|
void |
set(long index,
T from)
Set the data in the array to a copy of this element
|
public long length()
public T get(long index)
HugeArray
public void get(long index, T element)
HugeArray
public void copyTo(long index, T to)
HugeArray
public void set(long index, T from)
HugeArray
Copyright © 2019. All rights reserved.