public interface HugeArray<T>
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 t)
Set the data in the array to a copy of this element
|
long length()
T get(long index)
index
- to look up.void get(long index, T element)
index
- of element to copyelement
- Copyable element to copy to.void copyTo(long index, T to)
index
- to copyto
- objectvoid set(long index, T t)
index
- to copy tot
- to copyvoid recycle(T t)
t
- reference to recycle.Copyright © 2019. All rights reserved.