public class LongArrayBuffer extends AbstractArrayBuffer
Usage Example:
LongArrayBuffer buf = new LongArrayBuffer(); Listresults = new ArrayList<>(); for (Object obj : listOfThingsToProcess) { for (Object x : obj.thingsThatShouldBecomeLongs()) { buf.add(someCalculation(x)); } results.add(buf.toArray()); buf.clear(); }
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
buf |
| Constructor and Description |
|---|
LongArrayBuffer(int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long v) |
long |
get(int i) |
long |
peek() |
long |
pop() |
long[] |
toArray() |
clear, ensureCapacity, isEmpty, length, setLength